App在后台模式下运行时如何在CoreBluetooth中检测到iphone通知信号?

时间:2012-02-07 01:34:29

标签: notifications core-bluetooth

当我的应用处于空间活动和后台模式时,我想获取CoreBluetooth通知信号。

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

1 个答案:

答案 0 :(得分:0)

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

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