如果我的应用处于终止状态,iOS区域监控是否会在我的应用上调用didEnterRegion? [英] Will iOS region monitoring call didEnterRegion on my app if my app is in a terminated state?

查看:133
本文介绍了如果我的应用处于终止状态,iOS区域监控是否会在我的应用上调用didEnterRegion?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

Will iOS region monitoring launch my app in the background if the user enters a region that was successfully being monitored for prior to the app being terminated?

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

I know that the significant change API will do so and will let me know at launch time via the inclusion of the UIApplicationLaunchOptionsLocationKey key. If region monitoring will wake my app up out of a terminated state too, then what does the launch process look like? Is there a special key I should be looking for?

推荐答案

是的,请参阅地区监控


在iOS中,始终跟踪与您的应用相关联的区域,包括您的应用未运行时的
。如果在应用程序未运行时跨越区域边界为
,则会将该应用重新启动到
后台以处理该事件。同样,如果应用程序在事件发生时暂停
,它会被唤醒并给予短时间
(大约10秒)来处理事件。

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区域监控是否会在我的应用上调用didEnterRegion?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆