如果我的应用处于终止状态,iOS区域监控是否会在我的应用上调用didEnterRegion?

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

我知道重要的更改API会这样做,并会在发布时通过包含UIApplicationLaunchOptionsLocationKey键让我知道.如果区域监控也会将我的应用程序从终止状态唤醒,那么启动过程是什么样的?我应该找一个特殊的钥匙吗?

解决方法

是的,见 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 16 更新版本时,我们听到了困扰 Apple...
欧版/美版 特别说一下,美版选错了 可能会永久丧失4G,不过只...
一般在接外包的时候, 通常第三方需要安装你的app进行测...
前言为了让更多的人永远记住12月13日,各大厂都在这一天将应...