1

当我的应用程序处于指定活动和后台模式时,我想获得 CoreBluetooth 通知信号。

我想检测这个信号来唤醒 App 播放音乐。这是可能的。

4

1 回答 1

0

在您的 Info.plist 添加一个 UIBackgroundModes 属性并在数组中包含 bluetooth-central 。

https://developer.apple.com/library/ios/#documentation/general/Reference/InfoPlistKeyReference/Articles/iPhoneOSKeys.html

于 2012-03-01T08:47:06.960 回答