【发布时间】:2014-11-24 18:07:47
【问题描述】:
我正在扫描硬件设备。 在前台时,我可以看到该设备。 当我在前台开始扫描,而不是移动到后台时,比我打开硬件-BLE,扫描停止,并且应用程序无法检测到硬件。
如果我将应用程序重新打开到前台,它会继续扫描并找到设备。
我已经设置好钥匙了:
<string>bluetooth-peripheral</string>
<string>bluetooth-central</string>
还有背景模式:
location updates
external accessory communication
uses BLE accessories
acts as BLE ACCESSORY
但什么都没有。系统不会让我检测后台设备,只检测前台设备。
我错过了什么?
【问题讨论】:
标签: ios bluetooth bluetooth-lowenergy core-bluetooth