gpt4 book ai didi

iphone - 监控重大位置变化的 iOS 应用程序是否会在设备重启时重新启动?

转载 作者:可可西里 更新时间:2023-11-01 04:22:58 28 4
gpt4 key购买 nike

来自Core Location documentation :

The regions you register with the location manager persist between launches of your application. If a region crossing occurs while your application is not running, the system automatically wakes up your application (or relaunches it) in the background so that it can process the event. When relaunched, all of the regions you configured previously are made available in the monitoredRegions property of any location manager objects you create.

遗憾的是,目前尚不清楚同一应用是否会在设备重新启动以响应区域更改后重新启动。

即使在设备重启后,在后台监控重大位置变化的 iOS 应用程序是否仍会重新启动?

最佳答案

是的,即使手机重启,您的应用程序也会启动以响应区域事件,即使用户在重启后没有明确运行您的应用程序。

我还没有看到任何文档清楚地说明这一点。但这就是它在我自己的几个应用程序中的工作方式。

关于iphone - 监控重大位置变化的 iOS 应用程序是否会在设备重启时重新启动?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8817111/

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