Updating locations while the application is running in the background, but not on the device (iOS 9)

I have included Background Modes > Location updates in my target capabilities. I run the application in the iOS 9 simulator, I put the application in the background with Location > City run in the simulator, and it looks like it continues to receive location updates. But I run the application on a real iOS 9 device and a few seconds after going to the background, I lose the location services arrows in the status bar and do not receive any location updates.

On the other hand, I ran the application on a real iOS 8 device and seemed to continue listening to places (the arrow in the status bar does not disappear).

Why do location services stop in the background on iOS 9 real iPhone ?

I need help resolving this issue, thanks in advance.

+8
ios iphone ios9 cllocationmanager location-services
source share
1 answer

With iOS 9, you also need to set allowsBackgroundLocationUpdates to yes . See Docs here

+14
source share

All Articles