Set Android Permissions

Hello!

I’m trying to add new permissions to my app this way on mobile-config.js

App.appendToConfig(`
    <edit-config file="app/src/main/AndroidManifest.xml" mode="merge" target="/manifest/application" xmlns:android="http://schemas.android.com/apk/res/android">
      <uses-permission android:name="android.permission.CAMERA" />
      <uses-permission android:name="android.permission.RECORD_AUDIO" />
      <user-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" />
    </edit-config>
`);

Unfortunately, it gets stuck when running my app at:

Starting app on Android Emulator

Any idea on how to set permissions that would go to AndroidManifest.xml?

Thank you!

Try encapsulating the config inside the platform tag <platform name="android">[config here]</platform>

1 Like

Thanks, I will definitely try that