Please provide the following:
- SDK Version: 47
- Platforms(Android/iOS/web/all): Android Emulator - Pixel 4 - Api 31
Example of my code:
async function getGeolocationData(registeredAddress: AddressDataProps) {
console.log("getGeolocationData - getCurrentPositionAsync");
try {
const location = await Location.getCurrentPositionAsync({
accuracy: Location.Accuracy.High,
});
console.log("getGeolocationData - reverseGeocodeAsync");
const reverseGeocodeText = await Location.reverseGeocodeAsync({
latitude: location.coords.latitude,
longitude: location.coords.longitude,
});
} catch (error) {
console.log("error", error);
}
}
Sometimes it works flawlessly, but every now and then I get stuck in the getCurrentPositionAsync( ), the other functions and console.logs never get called. Tried with low accuracy, with interval, but nothing seems to help with the inconsistencies.