【问题标题】:Ranging for iBeacons in the background based on proximity基于接近度的背景信标范围
【发布时间】:2020-04-10 20:26:44
【问题描述】:

EstimoteSDK 允许用户根据proximitybeacons 设置范围,即使应用程序位于background 中也是如此。 Apple 仅允许它在 foreground 上基于 proximitybeacons 范围。我的问题是,在background 中使用proximity 的范围时,有没有办法模仿Estimote

【问题讨论】:

    标签: ios swift bluetooth ibeacon


    【解决方案1】:

    Apple 的 CoreLocation 框架确实允许您在后台进行范围,但允许您这样做的时间限制为应用程序转换到后台后的 10 秒。您可以根据要求将其延长到 180 秒,或者如果您在 Info.plist 中设置后台定位模式,则可以无限期延长。

    在此处阅读更多信息:http://www.davidgyoungtech.com/2014/11/13/extending-background-ranging-on-ios

    【讨论】:

    • 您是否有一些代码或 swift 示例演示如何在后台定位模式下无限期定位信标?
    猜你喜欢
    • 1970-01-01
    • 2021-05-15
    • 1970-01-01
    • 2013-03-05
    • 2019-01-03
    • 1970-01-01
    • 2016-10-25
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多