监视重要位置更改的iOS应用程序是否会在设备重启时重新启动? [英] Will an iOS app that monitors signficant location changes be restarted on device reboot?

查看:256
本文介绍了监视重要位置更改的iOS应用程序是否会在设备重启时重新启动?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

核心定位文档


您在位置管理器中注册的区域在您的应用程序启动
之间仍然存在。如果在您的应用程序不是
运行时发生区域交叉,系统会在后台自动唤醒您的应用程序(或重新启动它)
,以便它可以处理该事件。重新启动时,您之前配置的所有
区域都可以在您创建的任何位置管理器对象的
monitoredRegions属性中使用。

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.

不幸的是,目前还不清楚在设备重启后是否也会重新启动相同的应用以响应区域变化。

Unfortunately, this is unclear as to whether or not the same app will also be relaunched after device reboot in response to a region change.

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

Will an iOS app that monitors significant location changes in the background still be relaunched, even after a device reboot?

推荐答案

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

Yes, your app will be launched to respond to the region events even if the phone is restarted, and even if the user did not explicitly run your app after the reboot.

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

I haven't seen any documentation that spells that out clearly. But this is how it works in a couple of my own apps.

这篇关于监视重要位置更改的iOS应用程序是否会在设备重启时重新启动?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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