I want to track the user location at full time. I don't need a precise accuracy, 100 m should be enough. On android for exemple a set an interval of 5 min to check the new location (but on ios as far as i know their is no such "interval" concept)
So i start to monitor location update like this :
LocationManager.DesiredAccuracy = kCLLocationAccuracyHundredMeters
LocationManager.DistanceFilter = 25
LocationManager.AllowsBackgroundLocationUpdates = true;
FLocationManager.startUpdatingLocation;
now the problem, i would like also to economize the battery when the user is not significantly moving. So i set PausesLocationUpdatesAutomatically = true
and i can see in the log that after 5 or 6 location updates i receive the event locationManagerDidPauseLocationUpdates
. That great because no need to continuously wake up my app if no significant location update are detected
Now the problem, the doc say that it's our responsibility to restart location services again. But when the app is in background how to do this ?