Data Migration after updating Android Ionic App to an Android Native version

时光总嘲笑我的痴心妄想 提交于 2021-01-28 14:25:10

问题


After I reached the limits of Ionic I boldly decided to detach from the web world and learn Kotlin to rewrite the app in the native language.

After an amusing challenge I have my new app up and running. But I forgot about one of the most important details : Data Migration.

The Ionic version stores data localy in an SQLite database: I am using this Ionic Native Plugin Cordova-sqlite-storage and I nearly do the same thing as this guy over here the only major diffrence I am on Capacitor.

In the new native version of my app I am using Room as an abstraction layer over SQLite. Is there anyway to do this migration ? I don't want my users to lose data of course and my app is offline so there is no way to upload data to the cloud as a shortcut.

Also, can I deploy the new app now, and block update from the old version until I find a solution ? or it s not possible in the Play Store ?

来源:https://stackoverflow.com/questions/65549703/data-migration-after-updating-android-ionic-app-to-an-android-native-version

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!