Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正计划在 iphone 上使用 bonjour 的点对点应用程序。将没有可用的wifi,因此我依赖蓝牙。我知道基于 bonjour 的服务可以在没有 wifi 的情况下通过蓝牙工作。
我的问题是,当我启动 bonjour 服务或尝试进行发现时,手机上的蓝牙会自动启用吗?
如果没有,我该如何启用蓝牙 - 我在 SDK 中找不到任何公共 API?
问候,HB
不可以。用户有责任在设置应用程序中选择网络连接选项。如果他们没有启用蓝牙,您无法为他们打开蓝牙。
-t