ios - 如果我的应用程序处于终止状态,iOS 区域监控会在我的应用程序上调用 didEnterRegion 吗?

标签 ios iphone core-location

如果用户进入在应用程序终止之前已成功监控的区域,iOS 区域监控是否会在后台启动我的应用程序?

我知道重大更改 API 会这样做,并且会在启动时通过包含 UIApplicationLaunchOptionsLocationKey 键让我知道。如果区域监控也能将我的应用程序从终止状态唤醒,那么启动过程会是什么样子?是否有我应该寻找的特殊 key ?

最佳答案

是的,参见 Region Monitoring

In iOS, regions associated with your app are tracked at all times, including when your app is not running. If a region boundary is crossed while an app is not running, that app is relaunched into the background to handle the event. Similarly, if the app is suspended when the event occurs, it is woken up and given a short amount of time (around 10 seconds) to handle the event.

关于ios - 如果我的应用程序处于终止状态,iOS 区域监控会在我的应用程序上调用 didEnterRegion 吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19850088/

相关文章:

ios - 当 UILabel 文本溢出 Swift 3 中的 View 时,使 UILabel 文本滚动或以字幕样式动画

iPhone:5秒视频拍摄

objective-c - 如何检查两条GPS路线是否相等?

ios - 如何快速将图像旋转到特定的纬度和经度?

ios - 放大 UIImageView : View For Zooming is called but nothing happened

iphone - 从4.4升级到Xcode 4.5后的差异

ios - 具有多个输出的 AVCaptureSession?

iPhone:将我的应用程序迁移到 IOS 5 后启动时出现奇怪的空白屏幕

iphone - 使用 XCode for iPhone 实现多线程

ios - CoreMotion 在后台更新