I'm trying to use navigator.geolocation.getCurrentPosition
to find lat long using android emulator.
It is not picking any location. I thought that problem is with my emulator. I tried using Telnet, and also altered my code based on:
{ enableHighAccuracy: true, timeout: 1000, maximumAge: 1000 }
I also tried false
option. Nothing worked. Please note that in expo snack i can get location using "Web" option, but not as android and IOS. so the problem is not browser based
I just found the code on expo snack, it is not showing the lat long here as well. Please see if you can help me find what is the problem. I prefer not to use Geolocation of expo, and would like to stick to the navigator.geolocation
option.
Please see snack link below: https://snack.expo.io/@coder79/geolocation-example