Many permissions that never use

I created an Android App that only use location in Expo Permissions.
When I install the apk it asks me for permissions that never appear on my code like phone status, read SMS, Audio recording, Contacts, etc.

  • Why does it happen?
  • How can I just ask for permissions to get the location?

Hey @g0nx,

You can configure what permissions are asked for beyond the minimum required in your app.json https://docs.expo.io/versions/v30.0.0/workflow/configuration#android

Cheers,

Adam

1 Like

yes you can.
Please write code in app.json
ref :- https://docs.expo.io/versions/v30.0.0/workflow/configuration#android

For Ex :-
“permissions”: [
“CAMERA”,
“READ_EXTERNAL_STORAGE”,
“VIBRATE”,
“WRITE_EXTERNAL_STORAGE”,
“com.google.android.c2dm.permission.RECEIVE”
],

if You have not Written then it take by default all permission.

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