开发者

NSNetService on WiFi instead of bluetooth

开发者 https://www.devze.com 2023-03-19 22:23 出处:网络
I have 2 iOS devices and an application which starts or connects to a NSNetService. When both devices have have bluetooth turned on the data stream will automatically be done over the bluetooth inter

I have 2 iOS devices and an application which starts or connects to a NSNetService.

When both devices have have bluetooth turned on the data stream will automatically be done over the bluetooth interfac开发者_开发知识库e.

I do not want that, i want both devices to communicate over the WiFi. Is there a way to force a NSNetService to communicate over the WiFi?

Thanks


I don't think there is, I haven't looked into the docs, but I know a ton of games recommend disabling Bluetooth and ensuring WiFi is enabled for local multiplayer.

0

精彩评论

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

关注公众号