How to update my app to Paid version and not create a new app

I use Ionic 4 framework and have two apps one for free one for paid, they are almost identical in features, but the free version has ads, the paid one doesn’t. And also I changed widget id from config.xml file. When a user goes from the free version to paid, I don’t want them to have two separate apps on their phones. I want the paid version to be on the same free one and also keep the data if it’s possible (I use local storage). Is that possible and how I can do that ?

Did you get any solution for this? If yes, please share.