Many permissions that never use

#1

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?
0 Likes

#2

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

#3

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.

0 Likes

closed #4

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

0 Likes