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
0
votes
1 answer

what GKSession doesn't connect on every attempt?

In application, invitationDidFail is being called, some time it connects properly, but sometime it doesn't... what can be possible reasons of denying the connection? // Display an alert sheet indicating a failure to connect to the peer. - (void)…
Chatar Veer Suthar
  • 15,541
  • 26
  • 90
  • 154
0
votes
1 answer

GKSession displayNameForPeer prevents releasing the session (iOS 4.0, 4.1)

I can reliably crash the simulator with this when releasing the GKSession after calling displayNameForPeer for another peer (not self), and I'm not sure if it's something I'm doing wrong or if it's a bug with Apple's Gamekit framework (and whether I…
Michael F
  • 321
  • 3
  • 13
0
votes
3 answers

why does iphone searches itself in GKSession?

GKSession is searching itself(the same device), why? Even in GKRocket Example, why does so? How can I stop not to make self connection?
Chatar Veer Suthar
  • 15,541
  • 26
  • 90
  • 154
0
votes
1 answer

How to save Bluetooth available devices into an NSMutableArray?

-(void) TimerMethod { [session disconnectFromAllPeers]; timer = [NSTimer scheduledTimerWithTimeInterval:60 target:self selector:@selector(myMethod) userInfo:nil repeats:YES]; } -(void)myMethod { @try { …
Chatar Veer Suthar
  • 15,541
  • 26
  • 90
  • 154
0
votes
1 answer

Connect 3rd Device using GameKit

I am using GameKit on a basic level right now. I am able to connect two devices and send messages between them. I have 3 devices, we'll call them device A, B and C. I am able to connect A to B, A to C, and B to C, as individual setups. If I connect…
Chris
  • 5,485
  • 15
  • 68
  • 130
0
votes
1 answer

Client GKSession think it's connected after denyConnectionFromPeer

I have a typical GKSessionModeServer/GKSessionModeClient setup. When the server denies a client connection attempt with denyConnectionFromPeer:, the client's session:connectionWithPeerFailed: method is called, but then it receives a…
Rhythmic Fistman
  • 34,352
  • 5
  • 87
  • 159
0
votes
1 answer

video streaming between two iphones?

is it possible to show what is showing in camera in one IPhone to another iphone through bluetooth(GKSession)..Remote Live is available in Appstore.any idea pls?
user141302
0
votes
1 answer

GKTank example is not working

I'm trying to get the GKTank example working with 2 iPhones. Both have bluetooth enabled. I start the app on both devices and tap the screen. The Peer Picker comes up and the devices find each other. If I select one device in the list it says…
david
  • 3,553
  • 4
  • 28
  • 39
0
votes
0 answers

How many data in bytes can I send at a time via bluetooth?

I'm using GKPeerPickerController and GKSession classes and I'm trying to send rather large amount of data (appr 20 mb, images). The problem is that when I send more then, say 10 megabytes the appropriate delegate method of the receiver (- (void)…
Stas
  • 9,925
  • 9
  • 42
  • 77
0
votes
1 answer

Not able to connect two devices without using GKPickercontroller

I am trying to connect two devices using Gamekit and transfer small amount of data. I was able to do this with the use GKPickerController but now to make the user experience a little better i am trying to achieve this automatically. The problem is…
Ashutosh
  • 5,614
  • 13
  • 52
  • 84
0
votes
1 answer

connecting 2 devices over different WiFi network using GKSession

I am trying to connect 2 devices using GKSession. When the devices are on same WiFi network it is working but when i am trying to connect devices on different WiFi network it is not working. This is my code for GKSession chatSession = [[GKSession…
Virat Naithani
  • 783
  • 12
  • 31
0
votes
1 answer

GKSession will get peer ids of other devices which are in background

Will GKPeerPickerController show the peer ids of the bluetooth device which is part of one particular application in suspended mode Scenario I have an iOS bluetooth application XYZ with a particular session id.Same application is running in…
Binoy
  • 1
  • 2
0
votes
1 answer

Determining when GKSession bluetooth devices go out of range

I'm using GKSession, GKSessionDelegate to implement peer to peer bluetooth connectivity between a number of iX (iPod, iPad, iPhone, ...) devices. I want to display a list of the currently available/connected devices in range. I'm currently…
iPadDeveloper2011
  • 4,560
  • 1
  • 25
  • 36
0
votes
1 answer

Testing GKSession between an ipad and simulator (iOS 6)

I am trying to start a GKSession between a simulator and ipad. But i think they are not even connecting because i try to list the clients and servers respectively. Nothing is displayed on both the device and the simulator. I was trying this Ray…
fftoolbar
  • 175
  • 1
  • 1
  • 11
0
votes
2 answers

GameKit Multithreaded sending possible?

I'm working on an application which can send out files and actions to users. Users can request a file at any time from the server (client server model). Sometimes files can be fairly large (e.g 10 mb) which whilst sending can delay the other small…
bencallis
  • 3,478
  • 4
  • 32
  • 58