Cordova / Ionic creates garbage in config.xml <allow-navigation> resolution every time it starts

When you start the application with Ionic and live reload enabled, a new allow-navigation entry is automatically added to the config.xml file with my local IP address and port.

After a while, this leads to a lot of garbage in config.xml, especially if there are several developers who can use several development machines to run the application. Since the file is included in Git (or another VCS) and no one cares about deleting this material before committing it, it often creates merge conflicts, which is easy to fix but rather annoying.

Can Ionic store these settings somewhere else to avoid config.xml getting infected every time someone starts the application? How is the local (user) configuration?

+14
cordova ionic-framework
source share
1 answer

I see that this problem was reported by the ionic-team, and it was fixed as a code extension.

So now the entry is added during the run / emulate command, but also returned after the command ends, leaving config.xml unchanged.

You may want to mark this as resolved.

0
source share

All Articles