I am using CLLocationManager
in my app and pausesLocationUpdatesAutomatically
property is set to YES to save battery.When locations are paused and then I try to restart location updates after specified time interval using startUpdatingLocation
method it starts and give 7 to 10 location updates.After that I dont get any further location updates.I call below method to restart updates.
PS:I have already enabled location Background mode in capabilities.
[_locManager startUpdatingLocation];
if ([_locManager respondsToSelector:@selector(setAllowsBackgroundLocationUpdates:)])
{
_locManager.allowsBackgroundLocationUpdates =YES;
}