Questions tagged [gkpeerpickercontroller]
21 questions
9
votes
2 answers
iPhone turn off bluetooth GKPeerPickerController
I agree that this question is duplicate. Please bear with me. I was also among you all to believe that is not possible to programatically turn on/off bluetooth.
But using GKPeerPickerController if bluetooth is not on user will be prompted to turn…

Janak Nirmal
- 22,706
- 18
- 63
- 99
6
votes
2 answers
A bit of annoying warnings that still let the app work but would like to remove
I tried out an app to test bluetooth communication. It is a simple app that just sends a message in text form from one iDevice to another. Originally, this app had about 6 warnings but I fixed all but two. They are the same but deal with…

mike_r
- 123
- 1
- 2
- 9
3
votes
2 answers
Connection trouble with GKPeerPickerController
I am working on an iOS game with GKSession and GKPeerPickerController. I am finding that the process of connecting two iOS devices is slow and unreliable, even if they are right next to each other. Let's call my devices "device A" and "device…

William Jockusch
- 26,513
- 49
- 182
- 323
3
votes
2 answers
Gamekit API error when accepting incoming request
I have made an iPhone game with Bluetooth mode, you can play 1 vs 1 via Bluetooth. My implementation for a picker is the following:
picker = [[GKPeerPickerController alloc] init];
picker.delegate = self;
picker.connectionTypesMask =…

coderjoe
- 137
- 2
- 16
2
votes
1 answer
Duplicate peer name appear in GKPeerPicker Controller
I am getting duplicate peername if I connect and disconnect bluetooth multiple time in my both ios device.
Is there any way to get single name for unique peer in gkpeerpickercontroller for bluetooth chat application.
Also attached the screenshot…

Vijay Hirpara
- 555
- 3
- 12
1
vote
0 answers
GKPeerPickerController Gives "wait_fences" Error When Using cocos2d
I have a cocos2d game all set up with a root view controller as it is meant to be. However, I am implementing Bluetooth gameplay, and when the user presses the cancel button on the peer picker controller, there is about 2 seconds of lag, and I get…

jrtc27
- 8,496
- 3
- 36
- 68
1
vote
0 answers
How to Broadcast a file(.mp3) over local wifi? and synchronize the play when both devices have the file?
I know my question is very big. but if some one cod suggest me what direction should i go to.
I know we can implement this by gameKit(GKsession/GKPeerPickerController) but i cant really understand the working of these two properly also, How can i…

iPhoneDev
- 303
- 1
- 2
- 10
1
vote
1 answer
Gamekit Picking more tha two players using gkpeerpickercontroller
Can anybody tell how to connect more than two online peers in iphone using gkpeerpicercontroller.
I tried to connect using
picker.connectionTypesMask =GKPeerPickerConnectionTypeOnline | GKPeerPickerConnectionTypeNearby;
but when i select two…

Johnykutty
- 12,091
- 13
- 59
- 100
1
vote
2 answers
iOS iPhone GKSession discovery in background
I know that the system can close Bonjour sockets while the application is suspended.
But ,will the system allow me while my application is in the background to only discover other devices not creating sockets to them and perhaps store those devices…

Jessy85
- 11
- 1
1
vote
0 answers
How to remove duplicate devices in bluetooth connection using GKPeerPickerController in ios
I want to connect two ios devices via bluetooth using GKPeerPickerController.
At the first time, it connects well but after that there is a problem in connction on can't connected.
There are duplicate devices listing in GKPeerPickerController alert…

Nicks
- 25
- 2
- 6
1
vote
1 answer
GKPeerPickerController is blank when invoked within EAGLView
I have an EAGLView-based class that runs the following code when a menu selection is made in OpenGL:
-(void) startPicker
{
self.gameState = kStatePicker;
GKPeerPickerController *picker = [[GKPeerPickerController alloc] init];
…

LotusCloud
- 11
- 1
1
vote
1 answer
GameKit peer to peer connection issue. It takes long time to deliver an invitation to another device
I'm using GameKit peer-to-peer connection in my app and I'm experiencing the following issue: when using GKPeerPickerController sometimes it takes too long time to deliver an invitation to connect from one device to another. Sometimes devices just…

Andrey Chernukha
- 21,488
- 17
- 97
- 161
1
vote
1 answer
GKPeerPickerController throwing exception "expected expression"
I have written this little piece of code:
GKPeerPickerController *picker = [[GKPeerPickerController alloc] init];
but even after restarting my Mac XCode is telling me: "expected expression"!
Anyone having any idea solving this problem?
Thanks

user1710004
- 209
- 1
- 4
- 12
1
vote
1 answer
Why is my crashing and saying EXC-BAD_ACCESS while trying to show a GKPeerPickerController(ARC is on)
Recently I have come across a problem in an app that I am developing. The app is crashing with EXC_BAD_ACCESS. This doesn't make sense because auto-reference-counting is turned on.
In the app, I have a button that is linked to an IBAction that…

Sidd Menon
- 856
- 6
- 18
0
votes
1 answer
Issue using bluetooth on iPhone/iPod
I'm trying to set-up a bluetooth based communication between two iOS devices.
Basically I'm trying to create a multiplayer game between two iPhones/iPods using bluetooth.
I'm using GKPeerPickerController to show the two options: Online or Nearby…

Bogdan Pahomi
- 11
- 2