基于接近度在后台对 iBeacon 进行测距
Ranging for iBeacons in the background based on proximity
Estimote
的 SDK
允许用户根据 proximity
为 beacons
设置范围,即使应用程序在 background
中也是如此。 Apple
仅允许它基于 foreground
上的 proximity
范围 beacons
。我的问题是,有没有办法在 background
中使用 proximity
来模仿 Estimote
?
Apple 的 CoreLocation 框架实际上允许您在后台进行范围调整,但允许您这样做的时间限制为应用程序转换到后台后的 10 秒。您可以根据要求将此时间延长至 180 秒,如果您在 Info.plist.
中设置后台位置模式,则可以无限期延长
在此处阅读更多内容:http://www.davidgyoungtech.com/2014/11/13/extending-background-ranging-on-ios
Estimote
的 SDK
允许用户根据 proximity
为 beacons
设置范围,即使应用程序在 background
中也是如此。 Apple
仅允许它基于 foreground
上的 proximity
范围 beacons
。我的问题是,有没有办法在 background
中使用 proximity
来模仿 Estimote
?
Apple 的 CoreLocation 框架实际上允许您在后台进行范围调整,但允许您这样做的时间限制为应用程序转换到后台后的 10 秒。您可以根据要求将此时间延长至 180 秒,如果您在 Info.plist.
中设置后台位置模式,则可以无限期延长在此处阅读更多内容:http://www.davidgyoungtech.com/2014/11/13/extending-background-ranging-on-ios