The inner workings and use of Apple's GameCenter API in your apps.
Questions tagged [game-center]
1852 questions
8
votes
2 answers
Can I check for Game Center authentication status outside my app?
I want to be able to know if the user running my app is connected to GameCenter (through GameCenter app or through other app), when i'm first running my app.
I found out that if I check the boolean:
[GKLocalPlayer localPlayer].authenticated)
it…

Idan
- 5,717
- 10
- 47
- 84
8
votes
1 answer
Game Center Leaderboard not appearing on production version of game?
My game went on the app store a few days ago and I cannot see my leaderboard at all. It just says "no data available"
However, when I build my game directly to my phone using an ad hoc profile I'm seeing my beta player's scores..
My leaderboard…

hamobi
- 7,940
- 4
- 35
- 64
8
votes
1 answer
Itunes Connect: You must have only 1 Leaderboard as default
I'm getting the above error when I try to create the first leaderboard for my newest app. Does anyone know how to resolve the error?
I do have another app with a leaderboard but surely that won't affect this app. For reference, I'm trying to create…

TripWire
- 532
- 7
- 18
8
votes
3 answers
GameCenter iTunesConnect - Leaderboard is not a member of a leaderboard set attached to version
Does anyone know what does this mean? I've tried searching everywhere but can't find a word on it.
Essentially I created a group for an app (and its deluxe counterpart), then created some leaderboards and added them to leaderboard sets. Then I…

veta
- 716
- 9
- 22
8
votes
1 answer
Any way to re-show Game Center login view? (Xcode)
My app attempts to log the player in when it finishes loading, like good little apps should (so says Apple). But if the player chooses to cancel the initial log-in, I wanted the app to re-attempt to authenticate the player if the player taps the…

Adam
- 125
- 4
8
votes
3 answers
Game Center not authenticating using Swift
I'm trying to authenticate the local player using swift, but every time I get a false value for the .authenticated property. Here is the code I'm using, it is called by the main view controller when the app starts.
func authenticateLocalPlayer(){
…

Andy Heard
- 1,715
- 1
- 15
- 25
8
votes
1 answer
Can I manually prompt the user to log in to Game Center on iOS 7?
According to Apple's Game Center programming guide, this code sets up an authentication handler. If you run this at the beginning of your game, the first time you run it, it will prompt the user to log in if they haven't yet.
-…

Saturn
- 17,888
- 49
- 145
- 271
8
votes
1 answer
Crash if backgrounding cocos2d 2.1 app in iOS7 while watching Game Center screens (leaderboard, achievement)
I have a 100% reproducible crash here.
Crash if backgrounding cocos2d 2.1 app in iOS7 while watching Game Center screens (leaderboard, achievement). It crashes instantly when pushing the home button.
Crash on line 275 in CCGLView.m:
if(
Jonny
- 15,955
- 18
- 111
- 232
8
votes
1 answer
Game center and my own server
I am creating a new online 2 player game. I already have a server with tons of players on it because of my other games. Is it possible to have one player from Game Center and another player from my own server? Or are Game Center players stuck with…

Elyas Naranjee Sani
- 487
- 4
- 14
8
votes
1 answer
iOS Game Center GameKit Programmatic Invite Matchmaking
I'm trying to implement a real-time multiplayer game with a custom UI (no GKMatchMakerViewController). I'm using startBrowsingForNearbyPlayersWithReachableHandler: ^(NSString *playerID, BOOL reachable) to find a local player, and then initiating a…

Jim
- 181
- 2
- 9
8
votes
2 answers
Authenticating a Game Center player on an online game's servers
"Clash of Clans" uses Game Center to authenticate and link a player with an existing remotely stored game state.
From what I can see, a game is only provided a player identifier on client side. Is there a supported technique to securely authenticate…

Ivan Vučica
- 9,529
- 9
- 60
- 111
8
votes
3 answers
iOS GameCenter leaderboard shows only my score in sandbox mode
I've created a leaderboard in the sandbox mode for my game. Then I tried to play the game using different gamecenter accounts. But I can see only the score for currently logged-in account. Is it correct? Or I have missed something? How can I fill up…

Mike Rojkov
- 81
- 1
- 2
8
votes
2 answers
Game Center doesn't respond to authenticateWithCompletionHandler request (iOS)
Here's my situation:
1) The user opens my application for the first time. I immediately call authenticateLocalUser to try and log them into Game Center. The popup with the Login, Create Account, and Cancel buttons successfully appears.
2) The user…

WendiKidd
- 4,333
- 4
- 33
- 50
7
votes
1 answer
"Game Center account services are currently unavailable" on Simulator
I dont know since when this happened, maybe after the upgrade to Mac OS Lion and Xcode 4.1. But I am not sure.
I have quite a large project for iOS which is constrained by the Game Center / Game Kit. I get straight to the point: On the simulator I…

Fabi
- 73
- 1
- 4
7
votes
1 answer
iOS: Game center crash on simulator
This is driving me crazy, I just can't find out the problem:
I have a crash on game center on simulator, in the device it works perfect.
It crashes when I call the following code:
[[GKLocalPlayer localPlayer]…

Damian
- 5,471
- 11
- 56
- 89