Gamecenter not updating scores at the completion of submit
Gamecenter not updating scores at the completion of submit
- Subject: Gamecenter not updating scores at the completion of submit
- From: Dan S <email@hidden>
- Date: Fri, 22 Dec 2017 14:13:48 -0800
Hello, I am trying to pull the latest score list from the GameCenter but
once it is submited, it does not comeback right away, but after 3-15
seconds delay (as in it works if I do the fetch on a delay)
Here is sample of what I do doring submition/fetching, and wonder if this
is just while in testflight or if there is a proper way of doing this?:
[GKScore reportScores:scores withCompletionHandler:^(NSError *error) {
if(!error) {
...
// put break point here and wait 20 seconds, the score is
returned...
// if you don't break and wait here, the old (previouse) score is
returned instead
[leaderboardRequest loadScoresWithCompletionHandler: ^(NSArray
*scores, NSError *error) {
if(!error) {
// do something with the score here
}
}];
}
}];
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden