You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Shazron Abdullah (JIRA)" <ji...@apache.org> on 2014/01/08 00:29:52 UTC

[jira] [Updated] (CB-3838) geolocation.clearWatch should stop GPS tracking

     [ https://issues.apache.org/jira/browse/CB-3838?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Shazron Abdullah updated CB-3838:
---------------------------------

    Component/s: Plugin Geolocation

> 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: iOS, Plugin Geolocation
>    Affects Versions: 2.7.0, 2.8.0
>            Reporter: Konya Kirsten
>            Assignee: Shazron Abdullah
>
> 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.1.5#6160)