My CLLocationManager
starts when the user first enters the app. I am initializing it like this:
self.locationManager = [[CLLocationManager alloc] init];
self.locationManager.delegate = self;
self.locationManager.desiredAccuracy = kCLLocationAccuracyBest;
self.locationManager.distanceFilter = kDistanceFilter;
self.locationManager.headingFilter = kHeadingFilter;
And I am using geofencing.
I have defined in my .plist the required background modes
.
If I test the app in the simulator using a gpx file, it works fine. So far, so good.
However, I read in these two links:
Start Location Manager in iOS 7 from background task
Background Location Services not working in iOS 7
That in iOS7
, when the location does not change for a couple of minutes then the CLLocation
goes to sleep.
My question is that:
I do not call didUpdateLocation
at all, I only want the didEnterRegion
, or didExitRegion
. Theoretically, will it work , even the app is killed or user Location has not changed in the last hour and then decides to move?