Skip to content
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

"Location request timed out" when navigator.geolocation.getCurrentPosition #4

Open
JaxGit opened this issue Aug 2, 2016 · 0 comments

Comments

@JaxGit
Copy link

JaxGit commented Aug 2, 2016

Environment:
Genemotion 2.7.2 - Google Nexus 5 (Android 6.0.0); device OPPO R7SM (Android 5.1.1)
RN 0.29.1

navigator.geolocation.getCurrentPosition will timeout instantly on simulator or device. Only after I add {enableHighAccuracy: true, timeout: 20000, maximumAge: 1000} as the 3rd parameter it starts to work fine.

However I also found this issue which reported that enableHighAccuracy: true will not work with RN 0.25.1, RN 0.28.0 on Android 6 device, so I am not sure if this setting with RN 0.29.1 will still affect other devices.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant