The inner workings and use of Apple's GameCenter API in your apps.
Questions tagged [game-center]
1852 questions
18
votes
1 answer
Problems with GKLocalPlayer and saveGameData
I want to save game data with GKLocalPlayer and saveGameData method.
[localPlayer saveGameData:playerData withName:@"SolarFlares" completionHandler:^(GKSavedGame *savedGame, NSError *error) {
if (savedGame != nil) {
NSLog(@"Player data…

user3032732
- 221
- 2
- 4
17
votes
1 answer
Game Center Challenges in iOS 10
I've implemented Game Center features like achievements and leaderboards, and now I'm working on the challenges. I was under the impression that I didn't have to add any additional code - if I had achievements or leaderboards, players would be able…

claassenApps
- 1,137
- 7
- 14
17
votes
5 answers
Removing a GKTurnBasedMatch which is in an invalid state
I am doing some experimentation to try to learn about GameKit and I made a simple game and an interface which lists my player's matches. I am trying to add the ability to remove games using the removeWithCompletionHandler: method on the match, but I…

Zach
- 2,441
- 1
- 16
- 20
17
votes
3 answers
IOS Game Center Achievement Upload
Is anybody aware of a way of uploading all the Achievements into Game Center within iTunes Connect?
I have about 30 achievements in 10 languages. That's a whole bunch of clicking, cutting and pasting to get the data from my source file into…

Nosy Wombat
- 173
- 1
- 6
16
votes
6 answers
Remove glossy from my game icon in GameCenter app
How to do it?
UIPrerenderedIcon removes glossiness only for springboard icons.

brigadir
- 6,874
- 6
- 46
- 81
16
votes
1 answer
iOS Development: Strange problem with authenticating Game Center user
I'm building an iPhone game that supports Game Center (GC). When the app launches, I try to authenticate the local player...
if([GKLocalPlayer localPlayer].authenticated == NO)
{
[[GKLocalPlayer localPlayer]…

BeachRunnerFred
- 18,070
- 35
- 139
- 238
16
votes
3 answers
Game Center Achievement Issue
I have recently decided to add achievements to a game that has been on the App Store for years now, and I'm having issues with making them work.
I am using the following code to post the achievements:
GKAchievement *achievement = [[GKAchievement…
user513064
16
votes
4 answers
Testing Multiplayer Game Center game
I've read varying/conflicting answers, and I need some definite answers.
I'm currently at the start of developing a turn-based multiplayer game with Game Center. I've been following a tutorial @rayWenderlich.com, and I've got the player being…

Phil
- 2,995
- 6
- 40
- 67
15
votes
5 answers
Avoid Leaderboard Hacking on Game Center
Has anyone found a way to avoid leaderbaord hacking on Game Center or at least make it more complicated?
You can see a video of HackCenter, a Cydia app that lets you submit any score you want here: Hack Center
Even though that application is not…

elibud
- 8,119
- 2
- 21
- 21
14
votes
6 answers
the game is not recognized by game center
Hi
I am trying to add game center to my iphone app.
I have done the following steps
1) I have added an app to my itnuesAccount
2) I assigned the Bundle ID as net.myCompany.myGameCenter
3) I am using the same "net.myCompany.myGameCenter" as Bundle…

yunas
- 4,143
- 1
- 32
- 38
14
votes
4 answers
Setting up third-party server to interact with Game Center
I'm thinking of adding a feature to my iOS game to allow players to create their own game levels, share them with other players, rate them, etc. There'd be a public repository of user-created levels, sortable by creation date, rating, difficulty, or…

Andrew Clark
- 721
- 7
- 15
12
votes
2 answers
Update a score already submitted to Game Center
Right now I am working on a Black Jack game for iOS and would like to have a leader board that shows which players currently have the most "money". So if they get a high score and then lose "money" it would update their high score to match the users…

Skyler Saleh
- 3,961
- 1
- 22
- 35
12
votes
7 answers
"This game is not recognized by game center." iPhone Development
There are already a couple of questions on this but I followed their steps to solve it and it doesn't seem to work for me. Here's what I have done:
1. I double checked to have the bundle identifier in the xcode project to be the exact same as the…

ninjaneer
- 6,951
- 8
- 60
- 104
12
votes
7 answers
GameCenter login alert
In a game I am developing using GameCenter, I want to handle the following scenario:
the user starts up the game. He is shown the system alert that prompts him to log on GameCenter. He ignores it for now.
after a while, the user wants to log in…

Alex
- 919
- 2
- 7
- 16
12
votes
1 answer
Correct response to remote player quit in Game Center
I have a turn-based match with two participants, A and B. It is currently A's turn. B quits out of turn by calling:
[match participantQuitOutOfTurnWithOutcome:GKTurnBasedMatchOutcomeQuit ... etc.
As far as A's Game Center app is concerned, the…

jnic
- 8,695
- 3
- 33
- 47