Following Google Firebase's instructions (step 7) I'm trying to add the following to my config.xml file (in an Ionic project):
<universal-links>
<host name="abc123.app.goo.gl" scheme="https" />
<host name="my-app.firebaseapp.com" scheme="https">
<path url="/__/auth/callback"/>
</host>
</universal-links>
But each time I emulate the app the inserted code gets removed. How can I add the required code to the config.xml and keep it there without Ionic (or Cordova) removing the modifications.
The Ionic framework application name can be changed in the config. xml file, Go to your applications config. xml file and change the name in the tag that is responsible for your app name.
xml Android apps manage permissions, device features, and other settings in the AndroidManifest. xml file, which is located at android/app/src/main/AndroidManifest. xml .
ionic/config. json , and project configuration files, usually at the project's root directory as ionic. config. json . The CLI provides commands for setting and printing config values from project config files and the global CLI config file.
the simple solution for this is to run a cordova clean
before running any further ionic build/run.
cordova clean
ionic cordova run android
I often run it as a concatenated command if I'm experimenting with config.xml, ie cordova clean; ionic cordova run android;
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With