Can't fetch location on certain phones

Hey I recently stumbled upon a problem where i can’t seem to fetch the gps location of my Huawei P10 mate phone but it works with a samsung galaxy s7… Is there something I’m missing?
I tried without the maximum age, or without enablehighaccuracy. I also tried to get the location with react-native geolocation which works in an android simulator but not with any of the newer phones… I’m kinda running out of ideas is there anyone that can help with this? The function I’m trying to use is stated below.

_getLocationAsync = async () => {
    let { status } = await Permissions.askAsync(Permissions.LOCATION);
    if (status !== 'granted') {
          this.setState({
        errorMessage: 'Permission to access location was denied',
      });
    }
    location = await Location.getCurrentPositionAsync({enableHighAccuracy:true, maximumAge: 100000}));
    
    console.log(location)
    this.setState({ location });
  };

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