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

867 questions
9
votes
2 answers

Building a SpriteKit/GameKit leaderboard within a specific scene

I'm pretty new to Swift and I'm having some trouble implementing a leaderboard into my game. I just watched a tutorial: 'Game Center Leaderboards! (Swift 2 in Xcode)' in which the GameCenter information all went through the one view of the app. In…
muZero
  • 948
  • 9
  • 22
9
votes
1 answer

NSSet to NSData, then back out again, for GameKit?

I'm trying to do some image edit syncing between two of the same app running on different iPhones. I would like to send an NSSet * from one device to another (which I imagine involves encapsulating in NSData) then decrypting this back to an NSSet,…
Peter Hajas
  • 4,011
  • 4
  • 25
  • 28
9
votes
2 answers

playing a song on another device using bluetooth

i have this playlist of the songs in my app.I want to play a song from this playlist on anther device (iphone) using bluetooth. This is what i have done so for #import "BrowseStationsViewController.h" @interface BrowseStationsViewController…
iYousafzai
  • 1,021
  • 1
  • 10
  • 29
9
votes
2 answers

GameKit wifi connection?

I've read that as of iPhone OS 3.1, GameKit supports wifi connections. But the documentation states: "If your application configures the peer picker to allow Internet connections, your application must also dismiss the peer picker and …
Felixyz
  • 19,053
  • 14
  • 65
  • 60
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
8
votes
1 answer

trouble negotiating a 2 player match in game kit

I am getting some behavior I can't decode from GameKit. sometimes the player who has done the inviting gets stuck in a 'waiting...' loop, and is unable to close the deal on his invitation. I believe it has to do with multitasking and the invite…
8
votes
0 answers

Subclass of GKGraphNode costToNode method never getting called

I am trying to subclass GKGraphNode2D to also include different penalties for different terrains (in the costToNode method). When I create a new GKGraph with an array of my new subclass and call findPathFromNode on the GKGraph, it ignores my…
Marcus
  • 839
  • 8
  • 14
8
votes
1 answer

Best option for streaming data between iPhones

I would like to setup a client-server architecture for streaming data between multiple iPhones. For instance, the 'server' iPhone hosts a master list of animals. An arbitrary number of client iPhones can connect to the server iPhone then read and…
8
votes
1 answer

Can I manually prompt the user to log in to Game Center on iOS 7?

According to Apple's Game Center programming guide, this code sets up an authentication handler. If you run this at the beginning of your game, the first time you run it, it will prompt the user to log in if they haven't yet. -…
Saturn
  • 17,888
  • 49
  • 145
  • 271
8
votes
3 answers

How do I identify an empty NSData Object that appears as empty brackets?

I am dealing with a corruption issue in Game Kit's GKTurnBasedMatch class (see this thread) which sometimes results in an invalid game state, with corrupted matchData. So as a workaround, I'm creating a way out a way to identify these invalid…
todd412
  • 1,308
  • 2
  • 17
  • 24
8
votes
1 answer

iOS Game Center GameKit Programmatic Invite Matchmaking

I'm trying to implement a real-time multiplayer game with a custom UI (no GKMatchMakerViewController). I'm using startBrowsingForNearbyPlayersWithReachableHandler: ^(NSString *playerID, BOOL reachable) to find a local player, and then initiating a…
Jim
  • 181
  • 2
  • 9
8
votes
2 answers

How many clients can be supported by Gamekit server in IPhone 3.0

The GameKit in iPhone SDK 3.0 create a peer-to-peer bluetooth connection between two iPhones, using Server-client model. In the bluetooth spec, up to 7 clients can be connected to a server. But in GameKit document, there is no words for this issue.…
Soloman
  • 91
  • 4
8
votes
1 answer

handleTurnEventForMatch:didBecomeActive: callbacks only arriving some of the time

This is a follow-up to this question. If you are not receiving any callbacks to handleTurnEventForMatch:didBecomeActive:, try the answer there. In my game, I am only receiving turn event notifications some of the time. But if I go back to the…
William Jockusch
  • 26,513
  • 49
  • 182
  • 323
8
votes
1 answer

iPhone - bug with image and text sending over bluetooth

I have a problem with the GameKit framework. In my app, I want to send a text or an image. Now, when I send an image from UIImagePicker, it works well. When I send text, it does not show the same UIAlertView for images, with no image. Here is the…
user1372561
  • 183
  • 5
8
votes
2 answers

Game Center doesn't respond to authenticateWithCompletionHandler request (iOS)

Here's my situation: 1) The user opens my application for the first time. I immediately call authenticateLocalUser to try and log them into Game Center. The popup with the Login, Create Account, and Cancel buttons successfully appears. 2) The user…
WendiKidd
  • 4,333
  • 4
  • 33
  • 50
1 2
3
57 58