Android Permissions for Camera - requestPermissionsAsync

I am using requestPermissionsAsync to request permissions for BarCodeScanner at the point that it is required in my app.

For Android, should I:

  • Include a blank array for expo.android.permissions,
  • Leave expo.android.permissions out
  • Or set expo.android.permissions to [“CAMERA”] ?

Thanks

Hey @netcheese, it depends on what you want your app to contain permissions for. If you are not making use of background location, I would recommend setting your android.permissions prop to an array containing what specific permissions you need as it will exclude the bg location permission which is something Google is becoming more strict about and has lead to users apps getting rejected.

Cheers,
Adam

Thank you @adamjnav

If I use expo.android.permissions to [“CAMERA”] is this going to request the permisison before the user installs the app, like Android used to be years ago before they introduced inline permissions?

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