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

Christoph Wanja edited comment on CB-9716 at 12/8/15 12:13 AM:
---------------------------------------------------------------

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 `clearWatch()`.
`clearWatch()` works as expected.


was (Author: iwan_uschka):
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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to