I was wondering what can be wrong. I'm using version 2.1.9 on my server and the latest unity package (also 2.1.9). I've setup a leaderboard with Id 1 and using the CombuDemo scene to test thing out. I altered the demo code so that in case a user has a successfull login the leaderboard with id 1 is fetched.
Added this code in the CiombuDemo.cs:
protected override void OnUserLogin(bool success, string error) { base.OnUserLogin(success, error); if (success) { Debug.Log("Loading leaderboard scores."); LeaderboardsScores(); } }
Although there isn't any error the data isn't returned by the server (the correct leaderboard id is passed).
I have to upload a new highscore first before the actual fetching is working fine. I had the idea that if a user logs in he can see the newest highscores but for some reason I don't grasp I can't seem to get this working.
Anyone any idea what I'm missing here?
Your code is correct and I have no issues when I run it, so what is sent to console log when you add Debug.Log(scores.Length) in the callback of LeaderboardsScores?
FRANCESCO CROCETTI @ SKARED CREATIONS
I've send a reply using PM (production server mentions in the log ;-))
FYI: the problem was that the file crossdomain.xml was not moved to the root of the domain.
@Everyone: please remember that this file must reside in the root folder of your webserver domain, else the calls to the webservices would usually fail.
FRANCESCO CROCETTI @ SKARED CREATIONS