michalchudziak / react-native-geolocation

Geolocation APIs for React Native
MIT License
1.28k stars 220 forks source link

WatchPosition alway return same value when using Wi-fi #260

Open GaetanFauconnier85 opened 1 year ago

GaetanFauconnier85 commented 1 year ago

When I use watchPosition with wi-fi, the latitude and longitude are always the same even with enableHighAccuracy: false. But when I use the mobile data the position change correctly.

Is this the normal behaviour ?

michalchudziak commented 1 year ago

I think it should use WiFi location as a fallback option. Could you share more details? Does it happen on iOS, Android or both? Which version are you using?

Magnus-V commented 9 months ago

@michalchudziak See newer issues aswell, but when using enableHighAccuracy: true, it does not fall back to wi-fi (COARSE_LOCATION).

To test it, be somewhere with no gps and then start the app with enableHighAccuracy: true. The watcher will fail and not respond until you are somewhere with a GPS signal.