标签: notifications core-bluetooth
当我的应用处于空间活动和后台模式时,我想获取CoreBluetooth通知信号。
我想检测此信号以唤醒App播放音乐。这是可能的。
答案 0 :(得分:0)
在Info.plist中添加一个UIBackgroundModes属性,并在数组中包含bluetooth-central。
https://developer.apple.com/library/ios/#documentation/general/Reference/InfoPlistKeyReference/Articles/iPhoneOSKeys.html