Expo Location on Android // Location.Accuracy.Highest // getCurrentPositionAsync

Please provide the following:

  1. SDK Version: 35
  2. 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?


Can you please help me?

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