Questions tagged [gksession]

Used to discover nearby iOS Devices using Bluetooth or Wifi

GKSession is GameKit Framework, it is mainly used to find nearby iOS Devices using Bluetooth or Wifi. It is primarily work with Peers, which discovers the other Device using unique ID called sessionId. GKSession either work as Peer to Peer connection or Client Server connection.

88 questions
33
votes
6 answers

calling a method after each 60 seconds in iPhone

I have created an GKSession and as its object is created, it starts search for availability of devices, as - (void)session:(GKSession *)session peer:(NSString *)peerID didChangeState:(GKPeerConnectionState)state { I want to call this method after…
Chatar Veer Suthar
  • 15,541
  • 26
  • 90
  • 154
11
votes
6 answers

GKSession - what if I have Bluetooth and Wi-Fi turned off?

I'm working on an iPhone app that will allow for peer-to-peer connections. From what I understand, I have the choice between using GKPeerPicker or the GKSession. I don't like the idea of using the PeerPicker because I want to show a custom…
bpapa
  • 21,409
  • 25
  • 99
  • 147
11
votes
2 answers

Game Center GKMatch GKSendDataReliable packet lost

I have been using GKMatch for quite a while successfully in an app. I have been chasing down and issue with the game occasionally stopping and have tracked it down to packets being sent but not received. This happens only occasionally but I can't…
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
7
votes
1 answer

GKSession is deprecated in ios 7, what should I use now?

I have a few apps that use game kit to transfer files between devices but in ios 7 gamekit does not work correctly. I am wondering what I should use now.
user988294
  • 109
  • 1
  • 4
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
5
votes
2 answers

Stop irrelevant log from Bluetooth's GKSession?

How to stop the following code when GKSession starts search? BTM: posting notification BluetoothAvailabilityChangedNotification 2011-05-17 20:25:05.666 BLUConnect[2120:307] BTM: Adding new device 0x110db0 Jahangir Nawaz’s iPhone 00:23:DF:3C:BC:5B…
Chatar Veer Suthar
  • 15,541
  • 26
  • 90
  • 154
5
votes
2 answers

GKPeerPickerController and GKSession

we can connect by bluetooth only iPodtouch or iPhone using GKSession and GKPeerPickerController right ? , or can we connect other bluetooth device ?
jaleel
  • 315
  • 1
  • 5
  • 15
4
votes
1 answer

GKSession connectToPeer method doesn't time out

I'm struggling with a GKSession problem. I've got a client and server, and my client attempts a server connection with [_gkSession connectToPeer:peerID withTimeout:10]; If the server explicitly rejects the connection with [_gkSession…
TimD
  • 8,014
  • 2
  • 24
  • 34
3
votes
2 answers

GKSession peer disconnect causes other peers to appear disconnected

My app uses GKSession with GKSessionModePeer. It has to handle peers arbitrarily connecting and disconnecting because this is a long running app and users should be able to go to background and come back later. This works fine most of the time. …
killdash10
  • 706
  • 5
  • 12
3
votes
1 answer

Is there any way to connect GKSession only through Bluetooth?

Can we force GKSession connection only through Bluetooth?..I know its is possible through GKPeerPickerController , but i am not interested in GKPeerPickerController interface..I need to connect my application in two device only in Bluetooth…
Raj
  • 5,895
  • 4
  • 27
  • 48
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
1 answer

How to properly handle interruptions of GKSession?

My online radio app is playing background music. When the user listens to music and exits the app (enters background) to look elsewhere, I tear down the GKSession. It's P2P mode. When user returns to app, I reconnect GKSession. Is this the right…
openfrog
  • 40,201
  • 65
  • 225
  • 373
3
votes
2 answers

GameKit: Send extra information with GKSession without actual connection?

I am working on an iOS application which allows users to share PDFs with other devices locally. When the application launches the device actively becomes a client searching for servers who are broadcasting files. When the client sees a server it…
bencallis
  • 3,478
  • 4
  • 32
  • 58
2
votes
2 answers

GKSession mode peer: How to automatically connect two peers without any button / confirmation?

I want to establish a bluetooth connection between 2 iPhones with a GKSession without GKPeerPickerController and without pushing any "connect button" on both sides. I'm using the following code: currentSessionAuto = [[GKSession alloc]…
fvisticot
  • 7,936
  • 14
  • 49
  • 79
1
2 3 4 5 6