Please provide the following:
- SDK Version: 35
- Platforms(Android/iOS/web/all): Android
Hi guys,
I am having an issue with getCurrentPositionAsync on ANDROID
Regarding: Location - Expo Documentation
This is my code, it takes around 10 seconds to return(indoor):
_getLocationAsync = async () => {
console.log('vai pegar location')
let { status } = await Permissions.askAsync(Permissions.LOCATION);
if (status !== "granted") {
console.log("Permission to access location was denied");
} else {
let location = await Location.getCurrentPositionAsync({
accuracy: Location.Accuracy.Highest
});
}
};
The thing is, I dont need Location.Accuracy.Highest, I only need Location.Accuracy.Balanced.
On Android the only working options are:
Location.Accuracy.Highest and Location.Accuracy.BestForNavigation
Any other option gives this error:
Is this happening only for me?
Thanks!