【问题标题】:How can I detect iphone notification signal in CoreBluetooth when App runs on Background mode?当 App 在后台模式下运行时,如何在 CoreBluetooth 中检测 iphone 通知信号?
【发布时间】:2012-02-07 01:34:28
【问题描述】:

我想在我的应用处于特定活动和后台模式时获得 CoreBluetooth 通知信号。

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

【问题讨论】:

标签: notifications core-bluetooth


【解决方案1】:

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

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

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2014-03-30
    • 1970-01-01
    • 1970-01-01
    • 2014-12-09
    • 1970-01-01
    • 2017-02-16
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多