Questions tagged [game-center]

The inner workings and use of Apple's GameCenter API in your apps.

1852 questions
7
votes
0 answers

iOS 6 New API For Turn Based Matches - Accept and Decline

iOS 6.0 has added a couple of new instance methods to the class GKTurnBasedMatch. I am not sure how to use them: acceptInviteWithCompletionHandler declineInviteWithCompletionHandler Are they supposed to be used in response to receiving a turn-based…
Jay Haase
  • 1,979
  • 1
  • 16
  • 36
7
votes
1 answer

Using Game Center to save/share game data/state

After reading the developer docs and hours of searching various forums I can't seem to find information on how this is done. Basically I have a bunch of data that I save locally that makes up the current state of the player's game. I've seen other…
Cryptid
  • 71
  • 1
  • 3
7
votes
2 answers

iOS Game Kit Turn Based Match Programatic Rematch

I have a 2-player, iOS turn-based game that uses the game center and GKTurnbasedMatch. Is there a way to programmatically rematch an opponent after a match has finished? I would like to give the players one-button access to starting a new match with…
Jay Haase
  • 1,979
  • 1
  • 16
  • 36
7
votes
1 answer

ios game center submit time and show in leader board

in my app i need to submit the time to the game center and i need to show that in Elapsed Time - To the hundredth of a second format. 00:00:00.00 this is the format i want to show in leader board. In my app im getting the time in following format…
Sameera Chathuranga
  • 3,638
  • 3
  • 27
  • 48
7
votes
1 answer

Bizarre GameKit behavior. Anyone else seeing this?

I am running Xcode 4.3.3 and am targeting iOS 5.1. I am attempting to include Game Center functionality in a game. When authenticating the GKLocalPlayer the user is presented with the Sign in to Game Center alert view or shown to be logged in. So…
Endersstocker
  • 1,061
  • 9
  • 26
6
votes
2 answers

Sending And Receiving Data Via Game Center (GameKit) Over 3G Stops Working

I have a Game Center matchmaker working and implemented, and by using Game Kit's Bluetooth functionality I know that my multiplayer code works. When playing over the internet through the Game Center sandbox, it works when both devices are on WiFi,…
jrtc27
  • 8,496
  • 3
  • 36
  • 68
6
votes
1 answer

handling multiple iOS Game Center users in a persistent game

I have read https://developer.apple.com/library/archive/documentation/NetworkingInternet/Conceptual/GameKit_Guide/Achievements/Achievements.html#//apple_ref/doc/uid/TP40008304-CH7-SW13. I'm puzzled about the question of supporting multiple game…
M Katz
  • 5,098
  • 3
  • 44
  • 66
6
votes
1 answer

Game Center: addRecipientsWithPlayerIDs... How does it make sense?

You use addRecipientsWithPlayerIDs as part of configuring a GKFriendRequestComposeViewController, as in this example from Apple: - (void) inviteFriends: (NSArray*) identifiers { GKFriendRequestComposeViewController *friendRequestViewController =…
SG1
  • 2,871
  • 1
  • 29
  • 41
6
votes
2 answers

Is there a way to reset Achievement progress for my GameCenter sandbox account?

I have a GameCenter Sandbox-Account have tested my game, earned achievements, etc. Now I've made some changes and want to test earning Achievements again! Do I have to make an entire new Sandbox-Account or is there a way to reset my account?
col000r
  • 95
  • 1
  • 5
6
votes
1 answer

How to delay displaying of Game Center's popup window?

I have integrated Game Center (GC) into my game. It works great, except for an annoying message, which can popup in the middle of intense action, requiring 100% of the gamer's attention: "Could not connect to Game Center server. Cancel/Retry?" I…
yaru
  • 1,260
  • 1
  • 13
  • 29
6
votes
1 answer

Game Center Formatting Time

What do you set the value to be for the scoreReporter to show up as a correct time in game center leader-board. What do you need to covert the seconds to show up properly in the leader-board. Any help would be greatly appreciated. Here is the code…
6
votes
4 answers

"This game is not recognized by Game Center" error

I'm struggling to get past the first stage of getting Game Center integration to work. I've got this far: I've created a new, clean app, added the GameKit headers and the basic authenticateWithCompletionHandler: method in the app delegate. Starting…
TimD
  • 8,014
  • 2
  • 24
  • 34
6
votes
2 answers

How to implement Game Center in iOS app?

I am a bit confused now. I read through a lot articles that describe how to implement game center. All of them mention that I have to create an app at itunes connect first. So do I have to submit my app to iTunes first? Why do I have to do that? Do…
DarkLeafyGreen
  • 69,338
  • 131
  • 383
  • 601
6
votes
3 answers

How to run iphone GameCenter app from my app?

I think the best way and may be only way is using the URL schemes with [[UIApplication sharedApplication] openURL:...]. But I can't find URL scheme for game center..
Ruslan Konyshev
  • 135
  • 1
  • 5
6
votes
1 answer

How to share saved games across devices?

I implemented GameKit into my iOS game including the saved game feature. Here an example how I save and load a game: MobSvcSavedGameData.h #ifndef MOBSVC_SAVEDGAMEDATA_H #define MOBSVC_SAVEDGAMEDATA_H #import @interface…
Martin Braun
  • 10,906
  • 9
  • 64
  • 105