Similar app are mixing their ressources

Hi,

I have three apps developed with Ionic. Those app are really similar, basically it’s a chat, only the color, the title and some other variables are differents. The codes have a lot of copy-paste, so all files or variables have the same name in the three apps.
Then problem is, when have two or three of those apps opened on my phone, and I switch from one app to the other, they sometime mixe their contents.
For exemple I am on the app A, i go back to the menu and open app B, I have the launching screen, and then the app B become the app A, same title, same color, same chat. If I come back to the menu and reopen it, it doesn’t change.

I tried to change the name of some files, some variables, it didn’t work.

Thanks,