iphone - Proper iOS Background Location Updates -


location updates using apples cllocationmanager have been working fine while application running. decided implement monitorsignificantlocationchanges method described in apple documentation.

here applicationdidenterbackground method:

- (void)applicationdidenterbackground:(uiapplication *)application {  // switch significant location change events monitoring [self.viewcontroller.locationcontroller.locationmanager stopupdatinglocation]; [self.viewcontroller.locationcontroller.locationmanager startmonitoringsignificantlocationchanges]; 

the problem having no matter whether startmonitoringsignificantlocationchanges or not, application still reports ios utilizing location updates when application has been removed multitasking bar. installing app without ever running enough make ios display location icon in top right of screen , phone starts drain battery. cannot figure out how stop location updates when home button pressed , how start significant change monitoring service.

please let me know if can provide additional helpful details.

i think bug. managed fix removing app , reset location warning. after that, if install app again, location arrow not show anyway, after allow location app , close it


Comments

Popular posts from this blog

objective c - Change font of selected text in UITextView -

php - Accessing POST data in Facebook cavas app -

c# - Getting control value when switching a view as part of a multiview -