如何使用CoreBluetooth和Swift将蓝牙连接保存到设置

时间:2020-06-30 14:32:00

标签: ios swift bluetooth core-bluetooth

我有一个要在我正在构建的应用程序未运行时保持与iPhone连接的设备。目前,我正要连接到蓝牙设备,跳至设置,然后可以在其中看到该设备(我正在使用Nordic Thingy进行测试)。

我知道这是有可能的,因为我有一个Bose应用程序可以用我的耳机做同样的事情:连接到耳机后,不需要我打开应用程序甚至在后台也可以使耳机工作通过应用程序。

我已经研究了如何与团队保持蓝牙连接,但是我们仅在how to save data in the background for autoconnection when the app is open again上找到了与此类似的指南,或者在how to work with bluetooth devices when your app is in the background上找到了指南。

有没有办法在这里模仿Bose的行为?

0 个答案:

没有答案