getCurrentPositionAsync doesn't return location

#1

On Android, getCurrentPositionAsync doesn’t always return the location.

I use the function in two places on two separate screens on my app. On one screen it gets called and returns the longitude and latitude. on another screen, it doesn’t.

When it doesn’t get called, the screen just shows an activity indicator.

This is quite problematic for me as I don’t have an android phone. I use the emulator to build the app. So, I can’t properly debug the issue, as I can’t get the location on the emulator.

To build the app before I just use to take location coordinates from the IOS simulator.

I think my problem is similar to this: https://github.com/expo/expo/issues/2226#issuecomment-427272746

Is there a way i can retry the function call after a short amount of time?

closed #2

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.