> if (locationMode.HIGH_ACCURACY)
Are you sure this line is doing what it is supposed to be doing? [According to
the
documentation](https://github.com/dpa99c/cordova-diagnostic-plugin#locationmode-constants)
one should do the comparison of the returned location mode value to the
location mode constant values. One more thing is I believe
isLocationAuthorized() should also be checked before concluding location can be
queried.
Either way the provided example did not work on my Xiaomi MI A2 running the
latest Oreo release but it bailed out with an exception when called
> this.geolocation.getCurrentPosition().then((position) => {
so unfortunately it did not help :(
[ Full content available at:
https://github.com/apache/cordova-plugin-geolocation/issues/114 ]
This message was relayed via gitbox.apache.org for [email protected]