Ionic app installation failed

Hi, I’m building an taxi app. It has two apps, one for passenger and another one for drivers. I used the following command to build the apps.

(Now I’m using android. But later I hope to add iOS)

“ionic cordova buid android”

App names are different in config.xml, package.json and index.html. But i got an error message when I tried to install two apps that “package conflicts with an existing package by same name”.

Please help me. I want to try these two apps in same phone. I don’t have two phones and there are some native libraries.

You also need to separate the id parameter in config.xml for both the applications.

<widget id="com.org.passanger" version="1.0.0" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">

<widget id="com.org.driver" version="1.0.0" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">

Something like this.

1 Like

i think you need to uninstall first app then try install second one…
otherwise you can do changes in code as @addwebsolution mention

@addwebsolution thanks for the help. It worked perfectly.

if your issue was resolved, Please mark as a solution.

@addwebsolution
Sorry, I didn’t know about it. I’m new to Ionic. Thanks for informing me. I think, I did it correct.