-
Notifications
You must be signed in to change notification settings - Fork 657
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Geolocation getcurrent position passing 0 (Time out error) #233
Comments
A timeout errors means there isn't an acceptable GPS point available within the timeout period. In my experience, this mostly happens when requesting for high accuracy positioning and the device location settings is set to GPS/Device only. When location mode is set to GPS only, it can take upwards of ~15 minutes before GPS information is available. |
@breautek Thanks for the reply |
I had the same error on a Xiaomi MIUI Android 11 device, and in my case strangely although you explicitly give location permission to the app, you still have to enforce that permission in But thanks anyway for the tip @breautek cause it led me to the solution |
In my case it was also an issue with the GPS completely disabled in the phone. Thanks to @jfoclpf for this. It would be amazing, if this plugin could detect if the GPD is completely disabled in the settings to we can actually notify the user about this. Is that already possible? |
Apache generally follows the W3C spec whenever possible or when it exists, and I don't believe that is part of the spec, so I don't think that would gain support. However, there is an existing third-party plugin available that does just that, take a look at the diagnostics. Just ensure you specify the modules that you need to avoid adding unneeded permissions. |
ISSUE:I have been using cordova-plugin-geolocation in my project but some times even if internet & Geolocation enabled the getCurrentposition passing lat&long 0 values in Android
Plugin version: "cordova-plugin-geolocation": "^4.0.1"
Error code:"Location error code: 3
message: Timeout expired"
Any quick Possible solution could be helpful
Thanks in Advance
@breautek
The text was updated successfully, but these errors were encountered: