With Ionic Cordova, it was possible to use the config.xml file in the project to add specific permissions to the AndroidManifest.xml file during build. That way, when the Android platform folder was removed, the permissions were added to the manifest file each time when rebuilding the app.
Now I am migrating to Capacitor and looking for a similar solution. The Capacitor documentation is however very vague, and mentions direct editing of the AndroidManifest.xml. Now I already ran twice into a situation where I had to remove the Android folder, so the permission edits were lost as well.
Does anyone know how and where to configure the permissions for Ionic Capacitor, so compiling the app will also set the permissions back to the manifest file?