Questions tagged [gamekit]

GameKit is an Apple Framework that provides classes to create social games.

The Game Kit framework provides three distinct technologies: Game Center, Peer-to-Peer Connectivity, and In-Game Voice. You can adopt each technology in your application independently of the other technologies.

See : http://developer.apple.com/library/ios/#DOCUMENTATION/NetworkingInternet/Conceptual/GameKit_Guide/Introduction/Introduction.html

857 questions
68
votes
2 answers

Using iOS GameKit's "Bluetooth Bonjour" with other platforms

I'm interested in connecting to iOS-based devices over Bluetooth. I can see that the "Local Network" service is exposed, but I cannot find any extra information about it. Property stored under key 0x0204 looks like a Bonjour key. Which protocol is…
Ivan Vučica
  • 9,315
  • 7
  • 57
  • 109
61
votes
3 answers

Transfer data between iOS and Android via Bluetooth?

I've been reading up on how to transfer data between iOS devices over Bluetooth using GameKit. I'm not writing a game, per se, but do have a need to transfer a small amount of binary data between two devices. Between two iOS devices, this is easy…
Shadowman
  • 9,072
  • 17
  • 84
  • 170
34
votes
3 answers

GameKit matchmaking fails for 3G connections

I am making a multiplayer game for iOS and I read the material in Apple Developer Center, specifically this one. Here is my code for custom matchmaking, which is pretty straightforward: - (void)findProgrammaticMatch { GKMatchRequest *request =…
Hgeg
  • 535
  • 6
  • 18
25
votes
7 answers

Is it possible, in principle, for an Android device to interface with an iPhone over Bluetooth/GameKit?

(I am not interested in pure theory, but as a practical near or mid-term possibility, say within 12-24 months.) As a developer familiar with (but not specializing in) two major smartphone platforms, should I expect an Android library to come out…
JasonSmith
  • 68,848
  • 21
  • 119
  • 147
22
votes
2 answers

"The App Name you entered has already been used" even though I just created the app

I am trying to create my app on iTunes Connect, so I can add my game center features. When I reach the screen where I fill in the default language, app name, sku number, and bundle id, I receive an error message: The App Name you entered has already…
Rahul Iyer
  • 17,034
  • 15
  • 76
  • 159
19
votes
2 answers

Reconnect player in Game Center

I'm having trouble figuring out how to reinvite a disconnected player in a good way, using the GKMatch class for the Game Center. The game is a 1 vs. 1 game. When I detect a disconnected player, I try to reinvite that specific player to the match…
ThomasCle
  • 6,592
  • 7
  • 38
  • 78
18
votes
4 answers

How do I convert an NSNumber to NSData?

I need to transmit an integer through GameKit using sendDataToAllPeers:withDataMode:error: but I don't know how to convert my NSNumber to NSData in order to send. I currently have: NSNumber *indexNum = [NSNumber numberWithInt:index]; [gkSession…
jowie
  • 7,877
  • 8
  • 52
  • 92
18
votes
3 answers

Encode NSArray or NSDictionary using NSCoder

I was wondering whether or not it is possible to use the NSCoder method: - (void)encodeObject:(id)objv forKey:(NSString *)key to encode either an instance of NSArray or NSDictionary. If not how do you go about encoding them? I am trying to use…
Ron Dear
  • 515
  • 1
  • 5
  • 16
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,401
  • 1
  • 13
  • 20
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
  • 17,150
  • 34
  • 132
  • 231
16
votes
3 answers

Building my own game server for a turn-based multiplayer iPhone Game

From the Game Kit Programming Guide... Multiplayer allows players interested in playing an online multiplayer game to discover each other and be connected into a match. Depending on your needs, your application can have either use Game…
BeachRunnerFred
  • 17,150
  • 34
  • 132
  • 231
16
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
  • 201
  • 2
  • 4
15
votes
6 answers

Is there a way to delete scores in Apple's Game Center programmatically?

I did not find a way in the GameKit documentation to delete a player's score from within my app. Is this possible?
12
votes
4 answers

How do I get notifications for GameKit Turn-Based matches?

I'm working on a turn based iOS game using the new turn-based iOS5 API. One of the delegate protocols you need to implement for this is GKTurnBasedEventHandlerDelegate. One of the methods to implement is handleTurnEventForMatch. This is from the…
John Stewart
  • 1,136
  • 1
  • 10
  • 22
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
  • 909
  • 2
  • 7
  • 16
1
2 3
57 58