Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 48979

Preserving existing storage when migrating to Ionic

$
0
0

Hi. We have developed an application with Ionic from scratch that we previously had developed with another framework (Appcelerator Titanium). When we test the new version of the application in Ionic, it is installed on the Android device correctly, replacing the previous one but it deletes all the data of that version it replaces. It deletes the directory of images that the user had attached, the databases directory where it is placed the SQLite DB so the user also loses the data that had been stored in it. It is as if the new version erased everything that was previously there and did a fresh clean install.

We have developed the Ionic application with Capacitor, all the names and the configuration is similar to the previous version, we have increased the android:versionCode by one compared to the previous version, the new version correctly replaces the previous one but deletes all user data.

Is there a way to configure in the new version in Ionic that does not erase the previous data that the user had created so that it can continue to be used in the new version?

4 posts - 3 participants

Read full topic


Viewing all articles
Browse latest Browse all 48979

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>