当应用程序在后台模式下运行时,我如何在核心蓝牙中检测iphone通知信号



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

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

在Info.plist中添加一个UIBackgroundModes属性,并在阵列中包含蓝牙中心。

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

最新更新