Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iOS 5.1 CoreLocation, location service icon not disappearing

I am tracking users location in my app, and I am stopping updates when I receive the first location update. The idea is to only get a "snapshot" of the users location once, not actually track the users movement.

However in iOS 5.1 on device and simulator, the location service icon at the top right of the screen doesn't disappear after the tracking started.

On iOS 5.0 (could only test in simulator), the icon appears and disappears as expected.

Does anyone know of any bugs that may affect CoreLocation in iOS 5.1 ?

I found someone else reporting something very similar, however he says if you force kill the app in multitasking bar, the icon is removed, mine persists, this is even when the app is not running at all.

Also (after killing the app), if I go into locations services in settings, my app is lit up purple and I can turn on or off, toggling the location icon at the top with no problem.

Check out this guy: http://bendodson.com/weblog/2012/03/14/ios-5-1-location-services-bug/

like image 981
Daniel Avatar asked Dec 21 '22 23:12

Daniel


1 Answers

The traditional method:
[locationManager stopUpdatingLocation];
is not enough. You must also add:
[locationManager stopMonitoringSignificantLocationChanges];

This is a duplicate of this question.


enter image description here

like image 66
David Manpearl Avatar answered Mar 23 '23 07:03

David Manpearl