ios - Game Center Leaderboard score only updates when app resumes -


I have found a game center leaderboard in my game, which I use by using my own GUI GKLeaderboard loadScoresWithCompletionHandler method

I report new scores using the GKScore Report scoreException End Holder method. My problem is that when I report a new high score for the local player, when I open my leaderboard GUI (the force loadScoresWithCompletionHandler ), the player's score is not updated. - It is showing

But if I close the game and then open it again and then open the GUI, hey-presto, a new score is shown.

It tells me that there should be some kind of internal caching running in the gamekit which gets reset when the app starts. I know that when I start the app, GC tells me my certification. Handler tells me to tell me that he has certified the player again, so maybe there is an internal cache set in that method.

This is the first game I've worked on, where I'm displaying game center data using a custom UI, not the native GCView controller that I have never had. Does anyone have the same experience with this and can tell me why GKLeaderboard Load Scorchers Compilation Handler gives me old data?

I was having the same issue and I was sleeping especially on Stackworflow and other forums No response to this. Then, I found somewhere that whenever the level is complete, they were reporting new scores. And I changed the button to show the leaderboard to the leaderboard, it solved this issue. I am using the GC view controller and I was just calling the ShowLordboard because it was a non-custom leaderboard.


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -