Reputation: 2395
My application is using core location in background mode, when app is in background mode and sending GPS coordinates periodically, the blue banner "Your app is using your location" is not showing (like google map app for example). Any idea of what I could have missed ?
Upvotes: 4
Views: 1236
Reputation: 225
To show blue bar, you should
1: Enable Background Location Updates
in target Capabilities. Then set locationManager
allowsBackgroundLocationUpdates
to YES;
2: Add NSLocationWhenInUseUsageDescription
in info.plist
file (8.0+ ask for location). Then call requestWhenInUseAuthorization
method not requestAlwaysAuthorization
method.
Upvotes: 6
Reputation: 8638
It only shows for applications registered for when in use location updates.
Upvotes: 0