Location blue bar appears when not updating location
Originator:
keithbsmiley
Number:
rdar://20764660
Date Originated:
30-Apr-2015 09:49 AM
When the background mode for locations is enabled, and the CLLocationManager
has requestWhenInUseAuthorization
access, the blue location bar appears after exiting the app. This occurs even when stopUpdatingLocation
has been called in either applicationDidEnterBackground
or applicationWillResignActive
.
Steps to reproduce:
- Enable the background mode for location access
requestWhenInUseAuthorization
- Start updating location
- Stop updating location in either
UIApplicationDelegate
method - Put the app in the background
Expected results:The blue location bar never appears since we are no longer accessing the user's location.
Actual results:Note the blue location bar appears immediately and disappears after a few seconds.
Notes:This combination of things makes sense when we don't always want to access the user's location in the background, but do other times (such as when the user wants directions). You can also reproduce this behavior using Google Maps on iOS.
Comments
Facing the exact same situation. Please let us know if you hear anything from Apple
By mihirpmehta at June 19, 2015, 6:07 a.m. (reply...)
By keithbsmiley at April 30, 2015, 4:54 p.m. (reply...)
Example project: https://github.com/Keithbsmiley/radars/tree/master/LocationBlueBar
By keithbsmiley at April 30, 2015, 4:52 p.m. (reply...)
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!