game-center

How to authenticate the GKLocalPlayer on my 'third party server'?

我只是一个虾纸丫 提交于 2019-11-26 10:52:53
问题 iOS7 introduced new GKLocalPlayer method generateIdentityVerificationSignatureWithCompletionHandler() . Does anyone know how to use it for good? I assume there will be some public API at Apple server-side.. 回答1: Here is how you can authenticate using objective c. If you need it in another language should be trivial to translate. -(void)authenticate { __weak GKLocalPlayer *localPlayer = [GKLocalPlayer localPlayer]; localPlayer.authenticateHandler = ^(UIViewController *viewController, NSError

iOS Game Center: Scores not showing on leaderboard in sandbox

纵然是瞬间 提交于 2019-11-26 10:46:54
问题 I\'m developing a Game Center enabled game and I\'m running into an issue in the sandbox environment. I can successfully report the score without error. However, when I show the leaderboard, there are no scores visible. To verify that the score actually got there, I query the local user\'s score with the following code: -(void)retrieveLocalScoreForCategory:(NSString *)category { GKLeaderboard *leaderboardRequest = [[GKLeaderboard alloc] init]; leaderboardRequest.category = category;