Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

GKPeerPickerController and GKSession

we can connect by bluetooth only iPodtouch or iPhone using GKSession and GKPeerPickerController right ? , or can we connect other bluetooth device ?

like image 404
jaleel Avatar asked Nov 05 '22 17:11

jaleel


1 Answers

Bluetooth communication using GameKit (GKPeerPickerController and GKSession) is limited to iPhoneOS devices.

You can also use the internet instead of bluetooth, but once again, you are still limited to iPhoneOS devices.

If you are interested in using External Accessories, I suggest you check out Apple's Documentation on the matter. Their documentation states that:

Accessories can be physically connected to the device through the 30-pin dock connector or wirelessly using Bluetooth.

This still will not enable you to play games between devices that aren't iPhoneOS, as you need the iPhoneOS, and it's GameKit framework on both ends. If you are interested in setting such a thing up, you will have to look into managing it manually.

I would strongly advise against using bluetooth, as it's buggy, slow, and has a short range. Peer to peer Wifi or LAN play will be your best bets. I suggest looking into using Bonjour of you're using LAN play. Here are two tutorials (one, two) on using Bonjour. Happy gaming!

like image 78
Sneakyness Avatar answered Nov 13 '22 23:11

Sneakyness