geremih / PogoMap

PoGo Map using React Native
GNU General Public License v3.0
58 stars 8 forks source link

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

Open JaxGit opened 8 years ago

JaxGit commented 8 years ago

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.