-
Notifications
You must be signed in to change notification settings - Fork 24.3k
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 timed out, code 3 #15718
Labels
Resolution: Locked
This issue was locked by the bot.
Comments
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
my code is
navigator.geolocation.getCurrentPosition(
position => {
console.log(position)
},
error => {
console.log(error)
},
{
enableHighAccuracy: Platform.OS !== 'android',
timeout: 20000
}
)
Before when I open the device's position
the result is code:1 message: "No location provider available."
After when I open the device's position
the result is code:3 message: "Location request timed out"
my device is Nexus 5 android version 4.4.4
react-native -v
: 0.46.2node -v
:v8.2.0npm -v
:5.3.0The text was updated successfully, but these errors were encountered: