• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Gamecenter not updating scores at the completion of submit
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Prev by Date: Re: Data, enumerateBytes: separate blocks?
  • Next by Date: Re: Data, enumerateBytes: separate blocks?
  • Previous by thread: IKScannerDeviceView not working
  • Next by thread: NSDocument autosave in place – possible data loss?
  • Index(es):
    • Date
    • Thread