Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
当我的应用程序处于指定活动和后台模式时,我想获得 CoreBluetooth 通知信号。
我想检测这个信号来唤醒 App 播放音乐。这是可能的。
在您的 Info.plist 添加一个 UIBackgroundModes 属性并在数组中包含 bluetooth-central 。
https://developer.apple.com/library/ios/#documentation/general/Reference/InfoPlistKeyReference/Articles/iPhoneOSKeys.html