[ 
https://issues.apache.org/jira/browse/CB-7556?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14134584#comment-14134584
 ] 

ASF subversion and git services commented on CB-7556:
-----------------------------------------------------

Commit 551b40458c208e23be0005f25ad8a5c896f3aa9f in cordova-plugin-geolocation's 
branch refs/heads/master from Mark Pearce
[ 
https://git-wip-us.apache.org/repos/asf?p=cordova-plugin-geolocation.git;h=551b404
 ]

CB-7556 - iOS: Clearing all Watches does not stop Location Services

iOS shows a little arrow in the status bar if location services are in use. 
When you set a watch on Location Manager, it starts tracking position, and the 
arrow symbol appears. However, when that watch is cleared, no command to 
Location Manager is sent to stop tracking, so the arrow stays visible, even 
though in reality, the app is not using location services. My guess is that 
this also impacts battery life to some extent, especially if your iOS app has 
background location enabled.

This fix would automatically stop tracking location once all watched are 
cleared, so that the arrow symbol in the iOS status will disappear.

Tested on iOS 7.1.2.

Signed-off-by: Shazron Abdullah <shaz...@apache.org>


> Clearing all watches does not stop Location Services
> ----------------------------------------------------
>
>                 Key: CB-7556
>                 URL: https://issues.apache.org/jira/browse/CB-7556
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Plugin Geolocation
>         Environment: iOS
>            Reporter: Shazron Abdullah
>
> See https://github.com/apache/cordova-plugin-geolocation/pull/25



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to