Questions tagged [game-center]

The inner workings and use of Apple's GameCenter API in your apps.

1852 questions
7
votes
0 answers

Application is not recognized by Game Center

Whenever I authenticate my IOS user in my Xcode simulator (iPhone X), I get the following error: Optional(Error Domain=GKErrorDomain Code=15 "The requested operation could not be completed because this application is not recognized by Game Center."…
zambonee
  • 1,599
  • 11
  • 17
7
votes
1 answer

iPhone gamecenter submitting highest score?

I am using below function to submit score to game center. How to modify below code so that I can send the score only if it is highest than already submitted score? And I dont want to maintain the scores locally. Any help? - (void) reportScore:…
Chandan Shetty SP
  • 5,087
  • 6
  • 42
  • 63
7
votes
4 answers

Gamecenter ios 9 GameCenter GKLocalPlayerListener methods not called

This is about GameCenter. Since "the GKLocalPlayerListener protocol inherits the methods from GKChallengeListener, GKInviteEventListener, and GKTurnBasedEventListener. In order to handle multiple events" and "do not implement GKChallengeListener,…
μ4ρκ05
  • 585
  • 2
  • 5
  • 16
7
votes
1 answer

GKLocalPlayerListener protocol is not called

As the apple guidelines said; I've implemented the GKLocalPlayerListener protocol in my game center class and add the local player as listener as soon as he's authenticated: func authenticationChanged() { if…
Max_Power89
  • 1,710
  • 1
  • 21
  • 38
7
votes
2 answers

Handling cancel in GKMatchmakerviewcontroller

I am making a multiplayer feature to a game I made. Everything is working, except when I am in matchmaking and both players are connected, if one person hits the "Cancel" button the other device gets no notice of the canceling. On the other device…
Wyetro
  • 8,439
  • 9
  • 46
  • 64
7
votes
1 answer

when i update my game in iTunes connect will the leaderboards carry over?

if i update my game in iTunes connect will the leaderboards and achievements carry over. i have left everything related to game center the same in the new update but iTunes connect says "You don't have any new leaderboards for this app" just…
7
votes
1 answer

Gamecenter authentication issue

So I've updated the way I authenticate players for gamecenter and I'm still getting a crash at start up. This is the new way I authenticate: - (void) authenticateLocalPlayer { GKLocalPlayer *localPlayer = [GKLocalPlayer…
user3593148
  • 505
  • 1
  • 3
  • 14
7
votes
3 answers

Strange Exception with GameCenter

I keep getting this crash report from GA and users... However i cannot reproduce this exception by testing iphone5,5s,6 with both ios7 and ios8. This issue comes nowhere when application did enter to background. The strange part is that gamecenter…
WeiHan Hung
  • 155
  • 1
  • 7
7
votes
2 answers

Posting score to Game Center leaderboards

I am creating a game using swift on apple's Xcode 6 beta 6, and trying to add the high score of my game to gamecenter leader boards. I have created the leader boards in gamecenter. So, how do I add my high score, which I saved as a NSUserDefault,…
7
votes
3 answers

How to get local player score from Game Center

How to get score of local player from Leaderboard Game Center? I tried this code, but it returns nothing. Anybody know how to solve it, or is there better way how to get score? - (NSString*) getScore: (NSString*) leaderboardID { __block NSString…
user2374693
  • 163
  • 1
  • 2
  • 10
7
votes
3 answers

GKTurnBasedMatch push notifications are very inconsistent

I'm testing a turn based game between two devices. As far as I understand, sending a turn with [GKTurnBasedMatch endTurnWithNextParticipants:], for example, should automatically push a game center notification to the opponent. Sometimes, this…
cowfaboo
  • 709
  • 1
  • 8
  • 15
7
votes
4 answers

GKGameCenterViewController always shows Challenges instead of Leaderboards

I'm using Apple's code to show a GKGameCenterViewController: GKGameCenterViewController *gameCenterController = [[GKGameCenterViewController alloc] init]; if (gameCenterController != nil) { gameCenterController.gameCenterDelegate = self; …
PeterK
  • 4,243
  • 4
  • 44
  • 74
7
votes
2 answers

How to deal with game center invitations, if the friend has not progressed far enough in the app to reach the installInvitationHandler method?

I'm creating a real time matches game and I'm confused as to how to deal with game invitations? For instance, a player on one device can invite his friends to a match and then an invitation banner will appear on the friends' devices. They can tap…
Nosrettap
  • 10,940
  • 23
  • 85
  • 140
7
votes
1 answer

authenticateWithCompletionHandler: is deprecated: first deprecated in iOS 6.0

I am working on game which is using Game Center and I get next warning; ... 'authenticateWithCompletionHandler:' is deprecated: first deprecated in iOS 6.0 Ok, I searched and found out that there is new code for authenticate Local User so I…
iWizard
  • 6,816
  • 19
  • 67
  • 103
7
votes
1 answer

removeWithCompletionHandler Error

Upon start up, I am trying to clear all the matches on the game centre servers between my devices programatically by calling this method on each device: /** * called to authenticate the players game centre id */ - (void)authenticateLocalUser { …
Infinity James
  • 4,667
  • 5
  • 23
  • 36