[
https://issues.apache.org/jira/browse/CB-12308?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
jcesarmobile closed CB-12308.
-----------------------------
Resolution: Won't Do
The plugin uses the WebView geolocation, so there is nothing we can do in this
kind of scenarios (other than the mentioned going back to using java code).
By now, it might have been fixed by Google, if not, it should be reported to
them.
> Unable to get gps position
> --------------------------
>
> Key: CB-12308
> URL: https://issues.apache.org/jira/browse/CB-12308
> Project: Apache Cordova
> Issue Type: Bug
> Components: cordova-plugin-geolocation
> Affects Versions: 6.4.0
> Environment: Android 5.1
> Reporter: Placido Curro
> Priority: Major
> Labels: triaged
> Attachments: www.zip
>
>
> Hello,
> on my Android mobile phone, a Meizu M3s Android 5.1, gps plugin doesn't work
> very well.
> I have developed a basic app with just the gps plugin and a button to get the
> current gps position. I run it, and when I push the button to get current
> position, I get the 'on error' callback with timeout error.
> Of course, the app has access to gps and global gps setting is on.
> If I turn the mobile off and on, then the app works and I get the position.
> But, if I put the mobile in stand-by and I leave it for a while (10 minutes
> for example), then the app stops working and and gps requests expire per
> timeout.
> Enableaccuracy, timeout and age options doesn't affect the bug. I experience
> the same problem, even if a try to reduce or to increase timeout and age, or
> set EnableAccuracy true or false.
> Thanks for your attention.
> Regards, plco.
> P.S. Later, I have added the cordova-plugin-mauron85-background-geolocation
> plugin and while the cordova gps plugin still expires per timeout, this one
> manages to get the current gps position.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]