not authorized to get location services only on playstore

this my first time I create an app with expo , every thing works well
my code works fine in my mobile when I scan QR but after publish my app on playstore for testing and I download my app it show me this msg " not authorized to get location services "
this is my code :

and Im using linking in the same screen like this :

const openSettingFunction = () => {
    if (Platform.OS === 'ios') {
      Linking.openURL('app-settings:');
    } else {
      IntentLauncher.startActivityAsync(
        IntentLauncher.ACTION_LOCATION_SOURCE_SETTINGS
      );
    }
    setOpenSetting(false);
  };

Im using : “expo”: “~36.0.0”
edit : I think my problem is in app.json I’m asking only for
“permissions”: [“ACCESS_COARSE_LOCATION”]
do I need ACCESS_FINE_LOCATION too ??

Hey @azzero,

Per the docs (https://docs.expo.io/versions/v38.0.0/sdk/permissions/#android-permissions-equivalents-inside-appjson), Permissions.LOCATION is the equivalent of both so you should add FINE to your permissions array. Can you let me know if that resolves the issue?

Cheers,
Adam

1 Like

the problem is solved thanks alot , but I have now new problem with mapView does not working in my standalone just the logo.
edit : problem solved by changing SHA-1 certificate fingerprint from expo to the one provided by google play console

Thanks for following up and sharing the solutions to the problems you encountered.

1 Like