Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Will an iOS app that monitors signficant location changes be restarted on device reboot?

From the 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.

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.

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

like image 525
user92301 Avatar asked Jan 11 '12 09:01

user92301


People also ask

What will turning off Location Services do?

Turning off the location service on your phone can help conceal your location. This is important if you don't want third parties knowing where you are or being able to track your movement. However, a smartphone can still be tracked through other techniques that reveal its general location.

How do I lock my location on iPhone?

To stop sharing your location with all apps and services, for even a short period of time, go to Settings > Privacy > Location Services and turn off location sharing. This stops all apps on your device, such as Maps, from using your location.

What is using my location iPhone?

How to See Which Apps Are Tracking You. To see a list of apps that have requested access to your location data, open the Settings app and tap “Privacy.” Next, tap “Location Services.” The next screen will show every app that can request access to your location data.


1 Answers

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.

like image 157
Firoze Lafeer Avatar answered Oct 14 '22 08:10

Firoze Lafeer