hello
after i update config.xml file in my ionic project
then i build it to android
the file androidmanifest.xml is not get update from config.xml
hello
after i update config.xml file in my ionic project
then i build it to android
the file androidmanifest.xml is not get update from config.xml
config.xml
is a Cordova thing, so if you are using Capacitor it won’t use the config.xml
, you can edit the AndroidManifest.xml
manually as Capacitor doesn’t override your changes.
I try to use ionic react v7 and I can rewrite my config.xml file using capacitor.config.
But I can rewrite only preference section.
Can I add use-permisson to AndroidManifest automatically ?
Every new team member should manually rewrite AndroidManifest after clone project. Maybe somebody know best practice how to do this automatically. Thanks a lot
Nothing has changed, you still have to manually edit the AndroidManifest.xml
.
People cloning the project don’t have to manually rewrite the AndroidManifest.xml
, you should commit the changes to the AndroidManifest.xml
so everybody cloning the repo should have the changes already.
If you don’t commit the ios/android projects, then you can take a look at https://trapeze.dev/ as it allows to programmatically modify the AndroidManifest.xml
or use a different config file that also allows to do native configuration changes.
thank you julio-ionic. Will try to use trapeza tool