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
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
0 answers

Sending and receiving data on both the devices when one device accept connection request from another device through gamekit

I am using gamekit framework in my project for connecting two or more devices. I want to ask when one device selects another device like say device A and B , When A selects B ,B gots a dialog reagarding accept or deny connection.Now B accept…
Gypsa
  • 11,230
  • 6
  • 44
  • 82
1
vote
1 answer

iPhone App to transfer message over bluetooth but device is not getting connected

I am working on this iPhone app with which you can send message to other connected device. I have gone through following tutorial http://vivianaranha.com/apple-gamekit-bluetooth-integration-tutorial/ Everything seems to be fine. No memory leaks or…
slonkar
  • 4,055
  • 8
  • 39
  • 63
1
vote
1 answer

How to: Implement server forcing disconnect of client in GKSession

I am implementing the GKSession server/client mode operation in my application on iOS. I found one question related to mine but with no answer. I am trying to allow the server to disconnect any client that is currently connected to the session. I…
JonnyB
  • 335
  • 1
  • 3
  • 13
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
2 answers

How to send and receive data using gksession?

Hello I am sending data using gksession.code is given below.Here send data works fine and gives message that did data send.But i am not able to receive any data on other device.When i debug the code it is not calling and going inside the…
nehal
  • 622
  • 1
  • 13
  • 26
1
vote
2 answers

Connecting two devices using GKPeerPickerController

I have three devices(mac, ipod, iphone) all of them are connected to the wi-fi. When I am testing application, that connects two devices, both ask to switch on the bluetooth, but anyway, they want to use wi-fi. how to force them to use bluetooth…
0xDE4E15B
  • 1,284
  • 1
  • 11
  • 25
1
vote
3 answers

GKSession between different apps

I'm new to iPhone programming, and I have a question about Bluetooth I can't find an answer to. I'm planning on having a number of different apps, and I want users to be able to chat with each other no matter which one they are using. I know…
William
  • 296
  • 4
  • 14
1
vote
0 answers

Bluetooth multiplayer game lag issue

I am developing a 3D bluetooth multiplayer game for iPhone and iPad without using any game engine. I am using GKSession class to send data between devices over Bluetooth using Peer to Peer mode. If I continue to play the game for some time there is…
1
vote
1 answer

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…
typeoneerror
  • 55,990
  • 32
  • 132
  • 223
1
vote
3 answers

Whats the correct signature of receiveData:fromPeer:inSession:context: in swift?

im trying to rewrite my GameKit multiplayer game (local) in swift and have problems with some missing documentation for the language. I want to receive data from another peer so i set the dataReceiveHandler for my GKSession like…
Sven Fridge
  • 75
  • 1
  • 1
  • 8
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

Gamekit No Network error only on LTE network

I've built a multiplayer card game using GameKit, everything works fine unless a user is on an LTE network. If they are I get a didFailWithError No Network. Wifi, 4g, 3g, everything else works perfect. Is there a reason the LTE network isn't…
Sam
  • 390
  • 1
  • 3
  • 15
1
vote
0 answers

GKSession Bluetooth connection problems

My goal is to create a client/server Bluetooth game with 1 master and 1..6 clients. Devices are iPads v.2-4 with iOS 6+. First realization of this task was using GKSession class with client/server model. GSSession implementation shawn that this…
1
vote
0 answers

iOS synced note sharing

I am implementing a real time note sharing app using GKSession. Say 2 users - A and B are connected using GKSession. Anything User A types is sent to user B (per character) and vice-versa. I am using shouldChangeTextInRange from UITextViewDelegate…
heera88
  • 11
  • 1