【问题标题】:iOS Bluetooth background modeiOS蓝牙后台模式
【发布时间】:2015-12-06 12:21:19
【问题描述】:

我希望继续扫描蓝牙设备,并且我希望应用程序在后台运行。是否可以?好像我有一个连接的蓝牙设备,如果有数据传输,那么应用程序在后台保持清醒。但是,如果我只是在后台扫描,似乎即使我选中了Uses Bluetooth LE accessories(plist 中的bluetooth-central),应用程序最终也无法运行。

有没有办法让应用在后台保持活动状态并持续扫描设备?

【问题讨论】:

    标签: ios bluetooth bluetooth-lowenergy


    【解决方案1】:

    根据苹果开发者文档技术问答。

    我可以在我的应用程序中使用 iOS 设备发布 iBeacon 广告吗 在后台吗? 答:不可以。iOS 设备要发布 iBeacon 广告,请求此功能的应用程序必须位于最前面,并带有屏幕 打开并解锁设备。

    参考 - https://developer.apple.com/ibeacon/Getting-Started-with-iBeacon.pdf

    我发现这篇文章为某些特定情况提供了一些在后台连接 BLE 的详细信息。 https://medium.com/@cbartel/ios-scan-and-connect-to-a-ble-peripheral-in-the-background-731f960d520d

    【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2015-01-26
    • 2016-11-08
    • 2016-09-13
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-09-26
    相关资源
    最近更新 更多