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

前端之家收集整理的这篇文章主要介绍了如果我的应用处于终止状态,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.

原文链接:https://www.f2er.com/iOS/332042.html

猜你在找的iOS相关文章