Quantcast
Channel: Active questions tagged react-native+typescript - Stack Overflow
Viewing all articles
Browse latest Browse all 6287

Why does Expo Location.getCurrentPositionAsync take a while to get location in an emulator

$
0
0

I am using android studios emulator (pixel3 XL) to get current location. I have enabled highest location accuracy and that takes a while 50 seconds+ to get the current location, however on a physical device it takes a couple seconds. Is there any way to improve the time for this on the emulator? I have tried using the lowest accuracy but that does not return the location.

Code:

location = await Location.getCurrentPositionAsync({    accuracy: Location.Accuracy.Highest,    timeInterval: 10000,  });

Viewing all articles
Browse latest Browse all 6287

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>