I have been trying to implement deferred location updates in an app for the past two days. The problem I am facing is that
- (void)locationManager:(CLLocationManager *)manager didUpdateLocations:(NSArray *)locations
method is being called each second even after I call the
[self.locMgr allowDeferredLocationUpdatesUntilTraveled:(CLLocationDistance)200 timeout:(NSTimeInterval)25];
method.
ALthough I have to say that
- (void)locationManager:(CLLocationManager *)manager didFinishDeferredUpdatesWithError:(NSError *)error
is called exactly after 25 seconds as specified by me allowDeferredLocationUpdatesUntilTraveled
method with error code = null.
It is my understanding from the docs that didUpdateLocations should be called after 25 seconds only. Any help would be much appreciated.