gpt4 book ai didi

ios - 如果我的应用程序处于终止状态,iOS 区域监控会在我的应用程序上调用 didEnterRegion 吗?

转载 作者:可可西里 更新时间:2023-11-01 03:28:07 27 4
gpt4 key购买 nike

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

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

最佳答案

是的,参见 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 - 如果我的应用程序处于终止状态,iOS 区域监控会在我的应用程序上调用 didEnterRegion 吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19850088/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com