Serverside Highscores On Android

I have successfully created a server high score system that uses the example on the Unify Wiki. It currently only saves the scores to the server. I haven’t got around to writing the score board half.

The Unify Wiki Server Side Scores - http://wiki.unity3d.com/index.php?title=Server_Side_Highscores

It works from the editor and PC build when a submit button is pressed, it starts a coroutine on the following function - http://pastebin.com/3gMShNFG

The problem is when I build to Android and try to submit the highscore from the phone, nothing appears in the MySQL database for that submit.

Is there anything I’m missing that’s needed for the system to work on Android? The app has the ‘full internet’ permission according to the phone. I’m just stumped after spending a few days on the problem.

Any help appreciated.

Well I eventually figured out the problem after implementing the highscore table and getting the scores worked perfectly.

I noticed that the “get” url had http:// at the start where as the “post” url didn’t.
As soon as i added http:// to that the start of the url, i was able to post scores from android.

Just thought i’d come back and add it to this question just in case some someone else was as blind as me. :slight_smile:

hi have you tried running your project on an actual android device? and if you did, did your get method worked? meaning the scores appear? cause when i run my project on an actual android device, i can post scores to the server but the device can’t seem to display the scores… but on the PC i can both post and display the scores. can you show me your get method? i also followed the unify wiki server side score, and running on an actual android device gets me this problem with the get method…

snapshot of the project running on an actual android device, that is the leader-board scene ------->
link text

screenshot of the project running in unity(PC), that is the leader-board scene ------>
link text

the images really shows good example of the the getmethod running on the PC showing the scores from the server and also shows the problem when running on the android device, nothing, it shows nothing…

i also added permissions on my androidmanifest.xml

  <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
  <uses-permission android:name="android.permission.INTERNET" />

I’m sorry for the inconvenience but i do really need help with this, and I’ll be grateful for any help you can throw my way…