[
https://issues.apache.org/jira/browse/CB-13645?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
jcesarmobile closed CB-13645.
-----------------------------
Resolution: Won't Do
The plugin uses the WebView geolocation, so there is nothing we can do in this
kind of scenarios.
By now, it might have been fixed by Google, if not, it should be reported to
them.
> 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: 2.2.0, 3.0.0
> Environment: Android 7.0 custom ROM on a test Nexus 4, but believed
> to exist on other devices.
> Reporter: Filippo Possenti
> Priority: Major
>
> 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
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]