如果用户在应用程序终止之前进入成功监控的区域,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.