Welcome all.
I am trying to implement significant location changes and region support in my application. Although the application is active, obviously there is no problem getting location updates. My question is how to handle updates when the application is inactive.
This is my understanding of what happens if a significant change in location or recording / leaving the region is detected:
- If the application is in the background or suspended, iOS calls locationManager: didUpdateToLocation: fromLocation: (or locationManager: didEnterRegion :) for my existing location delegate.
- If the application is completed, iOS calls the application: didFinishLaunchingWithOptions: with the key UIApplicationLaunchOptionsLocationKey in my application. At this point, I need to create a new instance of the location manager in order to get the new location.
It is right? Did I miss something?
Thanks for the help.
Regards, --John
johnnyspo
source share