gamekit

GKSession Problems - Objective-C GameKit

Ok, I've been trying to create my own GKSession object and the delegate method is giving me an error in the console that I haven't figured out how to fix just yet. I was wondering if anyone had any suggestions or had encountered this problem? *Just a note - the variable peerStatus is defined elsewhere in my code. The peer can either be g...

iPhone p2p - Is there a way to connect to more than 1 devices?

Hi Is it possible to connect to more than 1 devices using the new GameKit framework? Till now all the examples I've seen show how we can connect to 1 device. Even the default connection interface lets the user select just one connect. Thanks. ...

The peerID used in GameKit framework, is always unique for each device?

Hello. The peerID assigned to your device in a GKSession, is it always the same for the same device? I mean, every time you create a GKSession, your peerID will be the same one? or a random one is assigned everytime you create a GKSession? How is this peerID generated? thanks! ...

RSSI value in gamekit iphone api

Is it possible to get bluetooth RSSI (Radio signal strength) value in gamekit iphone api? If it is pssobile, can i have some sample code. If it is not possible is there any other way to get bluetooth RSSI value in iphone OS 3.0? ...

Change text in GKPeerPickerController

Is it possible to change the default text (something like "looking for other iPhones and iPod touches") in the GameKit's GKPeerPickerController? I've seen solutions that are completely custom but I was wondering if i can avoid that hassle and just change the default text. ...

How can I turn on and off the bluetooth on iphone sdk programatically?

Hello, how can I tell programatically if the bluetooth is turned on or of on the device? And in ethier case turn it off or on programatically? thanks ...

iPhone: Sending large data with Game Kit

I am trying to write an app that exchanges data with other iPhones running the app through the Game Kit framework. The iPhones discover each other and connect fine, but the problems happens when I send the data. I know the iPhones are connected properly because when I serialize an NSString and send it through the connection it comes out ...

iPod touches cannot find each other through GameKit

I have two physical iPod touch devices. If I try running a program that uses a GKPeerPickerController to find another iPod touch running the same program, they just stay at the peer picker screen without any progress. Both have bluetooth enabled. I have tried my own program, along with Apple's GKTank sample app. Neither of the iPods ...

Streaming songs to connected devices using gamekit

I want to play the song from one iphone to the other, it is like the user from device A selects a song from his IPod and plays it, while the users on Device B can also listen to that song using their own iphone which is connected to the Device A using either the Game Kit or wifi. So is it possible to stream the song from the ipod librar...

iPhone - where can i find a sample of GKVoiceChatClient?

Hi I want to be able to let users of my iPhone app communicate using the GKVoiceChatClient classes. The documentation for the 3.0 SDK is very vague and I don't see any good samples in the Sample Code either. Can someone please tell me where I can find some working example of in-game voice using which I can learn how to use it! Thanks....

iPhone SDK: GameKit and large files + connection lost

Hello! Since some time I've been playing with GameKit, but now I'm facing relly bad difficulties. I'm going to send through Bluetooth bigger files - 1-2MB. I've already prepared a packets (about 8kB each). My app works as described on followin scheme: iPhone - sending header: file divided into 25 parts iPod - received header: OK I go...

GameKit and GKPeerPicker on 1st Gen iPhone and iPod Touch

This is my current set up for my multiplayer game: A view that gives connection tips and warns the user that multiplayer will not work on the 1st Gen iPhone or ipod Touch. There is a "connect" button that pushes the game view and starts the GKPeerPicker. Unfortunately, I don't have a 1st Gen iPhone or iPod Touch to test what happens...

Syncing issues using GameKit

I am trying to make a simple two player snake game that uses gameKit to send movement information back and forth. I start the game out with the server sending a command to start the game. Once the game starts a timer fires every .5 seconds that moves the snakes. No matter what I do I end up with the timers on the two iPhones firing at di...

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. Does it means a GameKit server can connect more than 7 clients? If yes, does that mean som...

NSError question

I have been creating a peer to peer connection for a new game, that does not use the peer picker. I am however dumbstruck as what to i put in here: - (void)session:(GKSession *)session didReceiveConnectionRequestFromPeer:(NSString *)peerID { NSLog(@"I GOTS A CONNECTION REQUEST"); if(connected == YES) { //deny all requests } else if(con...

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 present its own interface to configure an internet connection." Does this still stand? ...

Why is Gamekit designed this way? Even in Client mode all notifications are received

We are not using GKPeerPicker control. We are implementing custom UI. We have done some traditional client-server apps in different languages/platforms. In Gamekit, I have one in server mode and rest of them are in client mode. I am not using Peer mode. Yet, when ever some new client connects all the already connected clients are implic...

What part of the iPhone SDK handles bluetooth?

I'd like to be able to send data to a Mac with bluetooth from an iPhone? Is this possible? I think GameKit allows you to connect two iPhones, but I can't see anything about connecting to computers. ...

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 which can spoof itself onto an iPhone app's GameKit-based network. It seems reasonable that ...

GameKit: What is the connection type when using GKSession without GKPeerPickerController : Resolved

I am implementing a BlueTooth and Wifi Based chat program for iPhone. For connection purpose I am using GameKit. But because of some special requirements application I can't use the default GKPeerPickerController. So I instead I created a GKSession and GKSessionDelegate combo to detect the peers. After they find each other, they can chat...