微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

如果我的应用处于终止状态,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.

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐