The inner workings and use of Apple's GameCenter API in your apps.
Questions tagged [game-center]
1852 questions
10
votes
0 answers
How to get Game Center player name on server-side
In our multiplayer mobile game we want to use player names from Game Center. Those player names will be shown in public leaderboards, so we want to ensure on our server that Game Center player name is actually belongs to that specific user.
I have…

Nikolay Popov
- 1,106
- 7
- 8
10
votes
4 answers
endTurnWithNextParticipants doesn't trigger receivedTurnEventForMatch after update to iOS 8.3 and swift 1.2
Has anyone noticed any changes to turn based match notifications since updating to iOS8.3? In my app when I call endTurnWithNextParticipants, prior to the upgrade, this was resulting in a notification being sent to the opponent which would trigger…

Pinxaton
- 437
- 4
- 13
10
votes
1 answer
Game Center login dialog not shown again after cancelling it for the first time (iOS7)
I have a problem with logging a user to the Game Center. I first present the
login dialog right after the application finishes loading. If the user cancels
the dialog, I want to give him the option to change his mind by providing a
login button in…

user2986426
- 103
- 1
- 5
10
votes
3 answers
IOS Game Center GKLocalPlayerListener
I was trying to implement an event listener in a turn based game so a player can receive when his turn is active or when he is invited by a friend. GKTurnBasedEventHandler is deprecated in IOS 7 and i read in the documentation that i should use…

Macaret
- 797
- 9
- 33
10
votes
2 answers
Xcode 4.6 ARC Warning for Game Center Authentication
This is a new compiler warning that only showed up when I updated XCode to 4.6. My code is lifted directly from Apple's documentation (this is my iOS 6 code btw).
GKLocalPlayer *localPlayer = [GKLocalPlayer…

mevdev
- 701
- 8
- 16
9
votes
1 answer
Any way to programmatically reset leaderboards?
As I look into documentation of GKScore and GKLeaderboard, there is no way to reset scores reported by player to particular leaderboard in GameCenter. Am I right?
This seems quite inconsistent, since it is possible to reset…

manicaesar
- 5,024
- 3
- 26
- 29
9
votes
4 answers
How to get authenticated player's high score form leaderboard ( Game Center )
I need to retrieve authenticated player's submited score from Game Center. I use this code to get the score, but it just gets the top score (best score of the leaderboard not the specified player's score). How can I retrieve the authenticated…

pixeloverflow
- 579
- 1
- 5
- 23
9
votes
7 answers
Create a sandbox account on Game Center on iphone
I have been searching for a few days now an cannot find a thing.
I have an ipod touch 4g and have just started adding Game Center to a game i'm working on.
This works fine in the simulator, but when i try to test on my device (running the app in…

Ashley Staggs
- 1,557
- 9
- 24
- 38
9
votes
7 answers
MKMapView's user location is wrong on startup or resume
When I start my application fresh, or resume after a long time, MKMapView's notion of the userLocation is wrong and shows me in the middle of the sea.
I am using the following code:
self.mapView.centerCoordinate =…

DeShawn Terrell
- 295
- 2
- 4
- 7
9
votes
2 answers
iOS Game Center Leaderboard not allowing ties?
This weekend I was working on a game I am developing.
On Level 2 a number of players will get the best score (9 moves). Rather than placing everyone with the same score in 1st position, the first player to get 9 moves is positioned 1st, the second…

Charlie S
- 4,366
- 6
- 59
- 97
9
votes
3 answers
How to use GameCenter inside a React Native app
Im building a react native game app and I want to use game center to log the player in. To be more specific, all I want is the unique id that game center provides for the player. I plan on using firebase to store the information but I want the log…

Philip Speake
- 91
- 2
9
votes
1 answer
GameCenter Multiplayer Stuck on "Starting Game..."
I am currently working on my game and I have decided to enable multiplayer via GameCenter in the Game to allow users to play their friend. I have followed a tutorial by RayWinderLinch, but ran into a problem.
My problem is that when I load up the…

Jesse Onolemen
- 1,277
- 1
- 15
- 32
9
votes
1 answer
Offline Game Center iOS Achievements
Trying to figure out best way to work with Achievements in Game Center in case of offline mode (e.g. Airplane mode turned on).
As far as I understand Game Center in iOS 5+ takes care of offline submitted achievements and scores. It acts like a proxy…

Insomniac
- 3,354
- 2
- 23
- 24
9
votes
3 answers
authPlayerWithCompletionHandler Deprecated, so how do I use authenticateHandler
Questions pretty much in the title, authPlayerWithCompletionHandler is Deprecated, so how do I use authenticateHandler?

ManOx
- 1,935
- 5
- 23
- 37
9
votes
4 answers
iOS Game Center Group
When I use Group Leaderboard in Game Center do I need to use "grp" prefix in id's enumerated in my app?
In other words if I will set up my existing game to use Group Leaderboard do I need to add "grp" prefix to each id in my app?

Artem Shmatkov
- 1,434
- 5
- 22
- 41