Hi folks,
So one of my beta testers completed a level that stores their completion time as a statistic then shows the leaderboard values. After posting her value and then reporting the leaderboard results, her time came back as 0 instead of her actual time. When she refreshed the leaderboard it corrected itself (via a second call to GetLeaderboard).
I make these calls via the cloud, but is there still some sort of delay between setting a stat and getting the leaderboards for that stat? If so, how can I be sure there's a safe time to make the call so that the player's recent performance is actually included?
This is my call flow:
Client: Player completes a timed level and a call to a CloudScript function is made.
Cloud: Various work, calls server.UpdatePlayerStatistic, then returns to client
Client: client then calls PlayFabClientAPI.GetLeaderboard
So what seems to have happened is that the server call, from within my cloudscript, to UpdatePlayerStatistic had some sort of delay that prevented it from completing before the client made the GetLeaderboard call.
Is that something that is known? Is there perhaps something else going on?
Thanks for the help, it's much appreciated!
-Matt