The inner workings and use of Apple's GameCenter API in your apps.
Questions tagged [game-center]
1852 questions
5
votes
1 answer
Cocos2D & Leaderboard
I am dealing with a Cocos2D iPhone app with the Game Center Leaderboard. In this app the user has to draw lines in a landscape mode (the iPhone is horizontal). It happens then that the touch may begin outside the screen (in the left side near the…

Andrea Sindico
- 7,358
- 6
- 47
- 84
5
votes
2 answers
Game Center in Enterprise iOS Apps?
Is it possible to have Game Center leaderboards or achievements in an in house distributed enterprise app? The enterprise program doesn't seem to give you access to iTunes Connect, but I can't see any reason to not allow this.

jakeo
- 223
- 2
- 7
5
votes
1 answer
Game Center Leaderboard showing counts, put no scores
I have recently added game center to my application and everything worked great in testing. Now, when I release the app, I went and and played the game, had a high score and submitted it.
I actually have three leader boards: North America, Europe…

George
- 514
- 1
- 8
- 26
5
votes
1 answer
Is it possible to have a Game Center "LowestScore" Leaderboard?
I've read that Game Center Leaderboard scores are only updated when the newly posted score is greater than the already existing score.
This made me wonder if it is possible at all to have a Game Center Leaderboard that stores scores counting down,…

CodeSmile
- 64,284
- 20
- 132
- 217
5
votes
5 answers
How to hide "Welcome Back" banner from Game Center login?
I've been looking for this information through Apple documents, but could not find the answer. Soon after I launch my Game Center app there is a pop-up that says:
Welcome back, PlayerName
How can I hide the "Welcome back, playerName" message from…

Grhyll
- 83
- 1
- 6
5
votes
1 answer
about percentComplete in GKAchievement
After testing, I find that though the type of percentComplete of GKAchievement is double, and in apple's help document the legal values is between 0.0 and 100.0. but if you report percentComplete=1.5 to apple server, next time you will get the value…

Karl Yu
- 137
- 2
- 10
5
votes
2 answers
SwiftUI Game Center authentication doesn't prompt user to login
I have the below code to authenticate a local player in Game Center in my SwiftUI app. I want Game Center to prompt user to login if the player is not already login in but this doesn't happen.
class AppSettings: UINavigationController {
func…

Heyman
- 449
- 4
- 13
5
votes
5 answers
Looking High-res GameCenter Icon
I have been searching for a good quality (high-res) image of the GameCenter icon to implement in my app. I've seen this used in many professional games, and I am curious as to where I can find such an image.
I am not trying to violate any…

daveMac
- 3,041
- 3
- 34
- 59
5
votes
0 answers
Implementing Multiplayer for SpriteKit game with Game Center
I have a completed Sprite Kit game that is solid on it's own, However I would really like to incorporate real-time multiplayer functionality into it. The only problem is I have not been able to find any tutorials going over how to do so…

Garrett
- 1,576
- 4
- 27
- 51
5
votes
2 answers
Game Center InviteFailed
I'm am attempting to send a Game Center invitation. Sending from the simulator to a device or from a device to the simulator results in an InviteFailed error.
What might be the problem? Incorrect implementation? Low Internet speed? Or is it not…

0xDE4E15B
- 1,284
- 1
- 11
- 25
5
votes
2 answers
Game Data Persistence Across Devices
I'm still in the very early stages of a game, and I am saving information using a KeyChain wrapper class someone made. I wanted to ask for some advice early on, since I have time to change my approach.
My game has the potential to persist a fair…

NullHypothesis
- 4,286
- 6
- 37
- 79
5
votes
2 answers
How to send new message-based invites without GKMatchmakerViewController
For some reasons we do not want to use the GKMatchmakerViewController. Currently we are offering the user of our App the possibility to invite their Game Center friends via a friends list displayed in our UI.
While this is still possible in iOS 10,…

Nef10
- 926
- 2
- 16
- 26
5
votes
4 answers
What is the size of GameCenter achievement images?
So I want to incorporate GameCenter achievements in my game, but I have to supply images for each achievement for display in the GameCenter app. Apple isn't really clear about the required size. I've read online that they demand 512px images, but…

Rits
- 5,105
- 4
- 42
- 53
5
votes
2 answers
How to list all available GKTurnBasedMatches for a player?
I'm building a game using Game Center's turn based matches.
I want to display a list of all the available matches. I've tried using loadMatchesWithCompletionHandler(), but the array of games returns as nil, and the error also returns as nil. There…

coopersita
- 5,011
- 3
- 27
- 48
5
votes
3 answers
GKMatchmaker findMatchForRequest invite never received
I'm trying to invite nearby players to a match, but the invite is either never sent or never received.
GKMatchMaker startBrowsingForNearbyPlayersWithHandler works and returns nearby players that are on same wifi, but then I use findMatchForRequest…

Mark
- 2,666
- 3
- 25
- 29