The question "Background GPS in iOS. Is this possible?" does not answer this question.
I have a mapping app that uses MKMapView
and its built-in location services when the app is active. When the app is in the background, I would still like location updates to be delivered and processed. For that, I'm using CLLocationManager
.
I have location updates
enabled in the plist file and call startUpdateLocation
in the AppDelegate
code which also acts as the delegate for CLLocationManager
. This is everything mentioned in "Background GPS in iOS. Is this possible?",
When the app is active, everything works okay, getting updates no problem.
But when put in background mode, the little arrow indicating location services are being used comes on, but then disappears after about ten seconds. In this brief time period, the app seems to be able to receive location updates, but when the arrow is gone, no more updates.
Am I doing something wrong? Does MKMapView
override what CLLocationManager
wants to do?