GameKit wifi connection?

北城以北 提交于 2019-11-30 09:31:19

Your GKSession object will automatically handle the discovery of peers over WiFi or Bluetooth, and find those that are available on either protocol.

The documentation is stating that unlike Bluetooth, for which GKPeerPickerController provides a UI to enable Bluetooth if it's not already enabled, GKPeerPickerController does not provide a UI to enable wifi, or select the network the user wishes to be on, you will have to provide your own.

Gajendra K Chauhan

You can use GKPeerPicker class..There is connectionTypesMask,it has property GKPeerPickerConnectionTypeNearby (for bluetooth connection or wireless). For more detail see my original answer.. gamekit over the internet

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!