cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Christoph Wanja (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CB-9716) cordova-plugin-geolocation clearWatch seems not to stop GPS tracking
Date Mon, 07 Dec 2015 22:25:10 GMT

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

Christoph Wanja commented on CB-9716:
-------------------------------------

Just worked on this old issue today and fixed it. It was my fault, my openlayers module created
his own geolocation listener. So i had two of them but only killed one with stopLocation.

> cordova-plugin-geolocation clearWatch seems not to stop GPS tracking
> --------------------------------------------------------------------
>
>                 Key: CB-9716
>                 URL: https://issues.apache.org/jira/browse/CB-9716
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Plugin Geolocation
>    Affects Versions: 5.1.1
>         Environment: Android 4.4.4
>            Reporter: Christoph Wanja
>            Priority: Minor
>
> Android 4.4.4, GPS enabled
> When i start checking geolocation with navigator.geolocation.watchPosition(), and want
to stop it, clearWatch stops delivering geolocation information but the GPS symbol doesn't
disappear.
> After closing the app, GPS symbol disappears.
> Correct behaviour? What about battery lifetime? Is it just the symbol in the status bar
or is GPS still activated and delivers new choords?
> ps: cordova.exec(null, null, "Geolocation", "stopLocation", []) doesn't work either



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

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


Mime
View raw message