You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 8, 2023. It is now read-only.
Repository navigation
This repository was archived by the owner on Nov 8, 2023. It is now read-only.
I decided to do some real testing rather than emulated, and the results are woefully inaccurate. I walked around the block and found my location would stick for 10+ seconds sometimes, and half the time it showed me as being nowhere near the path I was on
Could you try to do the following import: import { Accuracy } from "ui/enums";
and use Accuracy.high as a value of desiredAccuracy in your first code snippet?
desiredAccuracy: 0 sets Android accuracy to ACCURACY_COARSE which gives approximate accuracy.
Setting plugin's desiredAccuracy to Accuracy.high will set the Android accuracy to ACCURACY_FINE which gives finer location accuracy.
I required enums and used enums.Accuracy.high (which I can confirm evaluates to 3) however this made no difference at all with either watchLocation or getCurrentLocation
Could you check the accuracy once again and update us back? We fully replaced the old Android implementation with the Google Play Services one (used by Google Maps).
Activity
radeva commentedon Aug 17, 2017
Hi @PerryRylance ,
Thanks for reporting the issue. We'll need some more info to further investigate it:
Could you send us a sample app (as .zip or just refer to a repo) where we can take a look at the exact code?
Best regards,
Veselina
PerryRylance commentedon Aug 17, 2017
Hi Veselina
This is on an Android, Samsung A5, Version 6.0
I've tried the following on page load
This doesn't work at all unless you put it in a timeout. Even then, it barely fires (maybe once every 2 minutes?)
I then tried this
But the results are so inaccurate it's practically useless for my project
radeva commentedon Aug 17, 2017
Hi @PerryRylance ,
Could you try to do the following import:
import { Accuracy } from "ui/enums";and use
Accuracy.highas a value ofdesiredAccuracyin your first code snippet?desiredAccuracy: 0sets Android accuracy to ACCURACY_COARSE which gives approximate accuracy.Setting plugin's
desiredAccuracytoAccuracy.highwill set the Android accuracy to ACCURACY_FINE which gives finer location accuracy.I hope this helps.
Best regards,
Veselina
PerryRylance commentedon Aug 18, 2017
Hi @radeva
I required enums and used enums.Accuracy.high (which I can confirm evaluates to 3) however this made no difference at all with either watchLocation or getCurrentLocation
Sorry to be the bearer of bad news!
DimitarTachev commentedon Oct 12, 2017
Hi @PerryRylance,
Could you check the accuracy once again and update us back? We fully replaced the old Android implementation with the Google Play Services one (used by Google Maps).
You could check the v4.0.0 release notes here.