I'm trying to install my ionic app on my android phone. I tried
install my ionic app on my android phone
The app ran on my phone, but when I ran the same command to run a different app, the app was replaced on my mobile. How can I keep both? I don't intend to modify any of these apps, they are ready. I tried these commands as well:
ionic cordova build android --prod --release
and
ionic cordova run android --prod --release
I got this error message:
[ERROR] An error occurred while running cordova run android --release (exit code 1)
By default, it will overwrite the previous version. You can keep the both app using below way:
Check the
config.xml
file, and change theid
of the app.Now, it will be considered as a different app and will not replace the previous one.