Filippo Possenti created CB-13645:
-------------------------------------

             Summary: Geolocation plugin issue when using getCurrentPosition 
when watchPosition has failed
                 Key: CB-13645
                 URL: https://issues.apache.org/jira/browse/CB-13645
             Project: Apache Cordova
          Issue Type: Bug
          Components: cordova-plugin-geolocation
    Affects Versions: 3.0.0, 2.2.0
         Environment: Android 7.0 custom ROM on a test Nexus 4, but believed to 
exist on other devices.

            Reporter: Filippo Possenti


1. Turn off geolocation services on the phone through the settings
2. start the app
3. setup a watch using navigator.geolocation.watchPosition
4. call navigator.geolocation.getCurrentPosition
5. observe that it will fail, which is correct
6. without terminating the app, turn on geolocation services on the phone 
through the settings
7. wait a bit and call again navigator.geolocation.getCurrentPosition
8. observe that it will fail, which is no longer correct
9. clear a watch using navigator.geolocation.clearWatch
10. wait a bit and call again navigator.geolocation.getCurrentPosition
11. observe that this time it will succeed

The expected behaviour was for the call to 
navigator.geolocation.getCurrentPosition to succeed (steps 7 and 8).




--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to