开发者

GKPeerPickerController and GKSession

we can connect by bluetooth only iPodtouch or iPhone using GKSession and GKPeerPicke开发者_JAVA技巧rController right ? , or can we connect other bluetooth device ?


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!


the last i heard, bluetooth is 'crippled' on the iphone meaning you can only transfer data via bluetooth to another device with an Apple approved bluetooth chip in it. check out the apple docs for developing 'accessories'.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜