[
https://issues.apache.org/jira/browse/CB-3838?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15082828#comment-15082828
]
Sergey Grebnov commented on CB-3838:
------------------------------------
This has been fixed along with the following
CB-7556 - iOS: Clearing all Watches does not stop Location Services
https://github.com/apache/cordova-plugin-geolocation/commit/551b40458c208e23be0005f25ad8a5c896f3aa9f
> geolocation.clearWatch should stop GPS tracking
> -----------------------------------------------
>
> Key: CB-3838
> URL: https://issues.apache.org/jira/browse/CB-3838
> Project: Apache Cordova
> Issue Type: Bug
> Components: Plugin Geolocation
> Affects Versions: 2.7.0, 2.8.0
> Environment: iOS
> Reporter: Konya Kirsten
> Labels: Triaged, iOS
>
> Calling geolocation.clearWatch doesn't stop GPS Tracking immediately if no
> GPS signal is available.
> Only when a GPS signal is available, the method 'didUpdateToLocation' is
> called in which the tracking is ended.
> A possible solution is to call stopLocation manually:
> cordova.exec(null, null, "Geolocation", "stopLocation", [])
> Or updating the method clearWatch so stopLocation is called by adding:
> if (self.locationData.watchCallbacks.count == 0) {
> [self _stopLocation];
> }
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]