When I build my app with EAS, it adds “android.permission.RECORD_AUDIO” as a required permission, but when I build exactly the same app, with the same code and configuration, with “expo build”, it doesn’t add it.
The problem I have now is, if I submit the app built with EAS, the Play Store is refusing it.
Have you experienced something similar? What have you done to fix it, without ejecting the app?
build process for eas build and expo build are completely different and the results are different too. the RECORD_AUDIO permission is added in config plugins like expo-av (config plugins are not run on expo build, which is a simplified and limited build system).
you can see in the above source code that you can set the config plugin options in your app.json to not request microphone permissions. we’re working on updating all api docs to include config plugin reference sections. here’s an example of what these docs look like.
I don’t know if I understood the code correctly, but it seems that the “expo-camera” plugin is adding the permission automatically. I tried to include config parameters to prevent it from adding it, but it seems it can’t be done.