The inner workings and use of Apple's GameCenter API in your apps.
Questions tagged [game-center]
1852 questions
6
votes
2 answers
How to authenticate Game Center User from 3rd party node.js server
I've been trying to get the new iOS Game Center GKPlayer method, generateIdentityVerificationSignatureWithCompletionHandler, working so we can securely rely on the Game Center credentials for authentication. We're using Node.js as the backend…

Simon Tang
- 71
- 1
- 5
6
votes
2 answers
player:receivedTurnEventForMatch:didBecomeActive: inconsistently/rarely fires
I am currently testing my Game Center Aware App using the Game Center Sandbox, with one instance running on the iOS simulator and the other on an Retina iPad Mini. I have a view controller which needs to receive turn events, so I implement the…

Ben Pious
- 4,765
- 2
- 22
- 34
6
votes
4 answers
Handling Game Center authentication
According to the Apple docs we should do something like this to handle GC authentication:
- (void) authenticateLocalUser
{
GKLocalPlayer *localPlayer = [GKLocalPlayer localPlayer];
if(localPlayer.authenticated == NO)
{
…

soleil
- 12,133
- 33
- 112
- 183
6
votes
1 answer
Game Center sandbox leaderboards wont show scores other than local score
I've been trying to get Game Center leaderboards working in a new iOS project for 3 days now.
The sandbox leaderboard only shows the user's local score, and not "all scores".
I can successfully post scores to leaderboards, and have done so from 4…

ch3rryc0ke
- 2,793
- 1
- 22
- 28
6
votes
1 answer
iOS Updated App Version - New Leaderboards and Accomplishments
When I create a version update in iTunes Connect, the Game Center leaderboards and accomplishments are empty.
Will the old leaderboards persist or do I have to create new leaderboards?
If not, can I use the old names for my new leaderboards so I…

Bryan
- 17,201
- 24
- 97
- 123
6
votes
0 answers
Game Center invitation programmatically with GKInvite list
I am using Game Center in my game for iPhone in IOS 6. I have a tableview with a list of GameCenter´s friends. When I click a friend name, this friend recieve anotificatión (Game Center Notification) in her phone asking if he want to play the game…

Aitul
- 2,982
- 2
- 24
- 52
6
votes
1 answer
Game Center woes: iTunes Connect? Provisioning Profiles? Something else?
I'm having some seriously confusing Game Center problems.
My app runs on iOS 6 and above only, and I've been using the standard code for authenticating with Game Center:
GKLocalPlayer *localPlayer = [GKLocalPlayer…

Tim Arnold
- 8,359
- 8
- 44
- 67
6
votes
1 answer
Game Center Matchmaking GKTurnBasedMatch has significant lag (~1 min)
I'm implementing a turn-based game with multiplayer mode through gamecenter. I have 2 devices (1 ipad, 1 iphone) to test in sandbox mode which were working fine but lately it has started to struggle in auto matchmaking process. After I send the…

guenis
- 2,520
- 2
- 25
- 37
6
votes
3 answers
Game Center. Get real name
I want to know real name of local player, but GKLocalPlayer's displayName return "Me", not real name.
Code what I use:
void (^completitionHandler)(NSArray *, NSError *) = ^(NSArray *players, NSError *error) {
for (GKPlayer *p in players) {
…

Sinba
- 314
- 3
- 12
6
votes
1 answer
Turn Based Participant Timeout Date Always NULL
Have been working on a two-player turn based game that uses a custom UI for match management. Considering restricting the app to iOS 6+ in order to use player timeouts. I would like to show the user the remaining amount of time to move, but the…

Dave Hardin
- 61
- 1
6
votes
3 answers
GKLocalPlayer Auth Crash on iOS6 with Modal Transition Error
My app keeps a record of whether it's successfully authenticated with Game Center. When it starts a new game or when the user looks at the score list, if a local player hasn't been successfully authenticated, and if the app isn't in the middle of…

Shannon A.
- 786
- 5
- 17
6
votes
2 answers
Game Center achievement unlocking multiple times
I set up an achievement for passing the first level of my game and it works but when i replay the level and pass it it shows the notification banner again, how can i prevent this from happening?

matt saravitz
- 157
- 2
- 15
6
votes
3 answers
How to accept an invitation in Game Center
I'm trying to implement invitations with Game Center and there's one thing that i don't understand. Ok, i've sent an invitation from one device to another. Then i have an UIAlertView on receiver which asks me i would like to accept or decline the…

Andrey Chernukha
- 21,488
- 17
- 97
- 161
6
votes
2 answers
packet size limit for iPhone games?
i am creating a multi player iPhone game using the multi player tutorial as the skeleton in the following link http://www.raywenderlich.com/3276/how-to-make-a-simple-multiplayer-game-with-game-center-tutorial-part-12.
With the architecture i am…

godzilla
- 3,005
- 7
- 44
- 60
6
votes
1 answer
GKTurnBasedParticipant information
Is there any way of retrieving the player's name from a GKTurnBasedParticipant object? It appears that there is no way of displaying relevant information about the game player apart from an ugly playerID according to the class reference. Or am I…

Adam Waite
- 19,175
- 22
- 126
- 148