gamekit

GKAchievement.completed

Maybe I still don't know how to properly find details on APIs (or how to find the APIs I am looking for) but is there any documentation on the new GameKit API items? Particularly the achievements, scores, etc. ...

GKSession sendDataToAllPeers including sender?

I've got a number of devices connected over wifi using GameKit. I have a simple UIAlertView popping up when peers (clients) receive data. All but the sender (server) show this alert view when data is sent, so I'm wondering if that's a bug in my app or if that's expected behavior. If the device doing the sending is also a GKSessionModePee...

Why am I getting GKVoiceChatServiceUnableToConnectError? What's wrong?

I'm trying to implement GK's voice chat. I have the underlying network done over wifi instead of bluetooth. Between the simulator and my test device, I was able to accept the invitation. But immediately after, I get the call didNotStartWithParticipantID, with the following error: Error Domain=GKVoiceChatServiceErrorDomain Code=32002 Use...

Using GameKit to transfer CoreData data between iPhones, via NSDictionary

I have an application where I would like to exchange information, managed via Core Data, between two iPhones. First turning the Core Data object to an NSDictionary (something very simple that gets turned into NSData to be transferred). My CoreData has 3 string attributes, 2 image attributes that are transformables. I have looked throu...

Routing currently playing audio to GKVoiceChat

Hi. Does anyone know is it possible to mix playing audio and mic input using AUGraph, route the result to a Session and send it via GKVoiceChat? ...

GKSession sendDataToAllPeers:withDataMode:error: is asynchronous - how to get news of when it's done?

GKSession sendDataToAllPeers:withDataMode:error: is asynchronous ... or so I understand. Short of the peer sending an application-level ACK (which would be very clunky) is there a means of finding out when it's done sending? M. ...

GKSession won't send data to peers on second connection

I've got a peer to peer iPhone game working pretty well. I've created a table to display available peers and I can connect (so far) up to four devices and play a full round of a game from start to finish: But here's my problem... I create a GKSession on one device with GKSessionModeClient and the other with GKSessionModeServer. The c...

failed to create oob message?

Hi I'm trying to build a simple chat client between two ipod touches Just as a start to learning Bonjour. I connect the two devices fine and everything seems like it should work. I can send the data with no problems (no error) , but When I should then receive the data and I dont. When I look in the log, I see "GCKSessionEvent_IncomingO...

How to use multiple peers with GameKit on iPad with iPhones?

If I am developing an iPad app (the "Server") which needs to communicate with up to 4 iPhone/iPod Touches (the Clients) how can I manage this? The two apps will be separate. Should I create 4 GKSessions for each of the iPhones? Should I have 1 GKSession which connects all 5 devices, and if I do, will each iPhone be able to "see" the othe...

GameKit on 4.0 not ready for primetime? Stopping advertising services.

Gamekit applications running under 4.0 do not properly handle removing GKSession objects. Running under 3.1.3 or 3.2, if a peer disconnects and the session is cleaned up (as in Apple demos): [gkSession disconnectFromAllPeers]; [gkSession setAvailable:NO]; [gkSession setDelegate:nil]; [gkSession setDataReceiveHandler:nil withContext:nil]...

Run the same iPhone app on 2 devices at once?

I have an iPhone app that uses GameKit in Xcode. I'm having problems getting it to work, so I need to look at the NSLog output on the 2 devices at once. My problem is that when I click build and go, it runs it on the device that was connected most recently, and I would like to run it on the 2 devices at once and be able to look at the co...

GameSalad like tools for PC

Anyone knows of a tool like GameSalad for PC in which you don't have to write scripts or anything but just use the existing behaviors and events to create custom game logic? Thanks ...

Why does my application crash when sending data via Game Kit?

I have been following this great guide on setting up bluetooth between 2 iPhones. However, what I need to do is send binary (for instance a video) instead of text. I load the data in to a NSData localData = [NSData dataWithContentsOfFile:videoPath]; Then a few methods on send it [self.gameSession sendDataToAllPeers:localData ...

List of Bluetooth devices on iPhone

Hello people! I'm develop iphone app, what need connect to bluetooth device and handle disconnection of device. I'm tryied to use ExternalAccessory framework, but it don't show any device (in settings I have paired A2DP device), on apple site I see " Specifically, you must include the UISupportedExternalAccessoryProtocols key to declar...

Apple Game Center api

I'm having trouble finding the GameKit api that contains the Game Center Reference. Apple Game Center is a social networking platform new to iOS. It's described here: [What's New in iOS4][1] The GameKit iOS reference is here: http://developer.apple.com/iphone/library/documentation/NetworkingInternet/Conceptual/GameKit_Guide/Introductio...

Does Bluetooth p2p connectivity work on iPhone simulator?

Does Bluetooth p2p connectivity work on iPhone simulator? I want to test GameKit connection over bluetooth with an iPad but have only one physical device. ...

iPhone GameKit asynchronous server pattern

What is the best way to implement a server piece of application using iOS GameKit? Should I create a separate server thread that somehow responds to all delegated events (data received etc)? Or maybe use NSRunLoops? ...

Gamekit iPad and iPhone Communication

I am developing an iPad app (the "Server") which needs to communicate with up to 4 iPhone/iPod Touches (the Clients). Should I create 4 GKSessions for each of the iPhones? Should I have 1 GKSession which connects all 5 devices, and if I do, will each iPhone be able to "see" the others (Ideally, this shouldn't happen as it will keep thi...

GKSession alloc / release / alloc = leaks and crashes

I've got an app that throws out the GKSession and makes a new one under various conditions (connection timeout, session fails, etc.). I'm getting memory leaks, though, and it sometimes crashes after a few loops through the reconnect. Here's my code: - (void) netConnect:(id) sender { NSLog(@"allocating GKSession"); currentSes...

setting up iPhone P2P only over bluetooth and without GKPeerPickerController

I want to use a custom interface to connect with other iDevices in a p2p game. I know I can either use GKSession and GKSessionDelegate or use the lower level Bonjour browsing. But both of them will search for devices both over bluetooth AND wifi. I want to list only bluetooth devices. I know this was answered in the past as impossible, ...