I have location services working in iOS8.
It is set for kCLLocationAccuracyBest
using startMonitoringSignificantLocationChanges
to restart when in the background and startUpdatingLocation
for accuracy.
When I set pausesLocationUpdatesAutomatically = YES
, the location services get paused and resumed as expected. However, the following call to didUpdateLocations:
only has one location in it.
I was expecting to receive a bunch of locations that were received by the OS while the delivery was paused. Am I missing something here? Does it have anything to do with deferredLocationUpdatesAvailable
?
This answer talks about a post on Apple Dev Forum, but I get nothing when searching for pausesLocationUpdatesAutomatically
.
Please note: this issue has nothing to do with calling requestAlwaysAuthorization
or setting prompts in info.plist
.
When you pause the location updates, the system considers that you don't need the location for now. Resuming it will only give you the current location.
This is a normal behavior.