Hi there.
This week, I did de upgrade of Ionic 2 to Ionic 3. Everything is working perfectly after making the necessary conversions and import changes, but, I’m experiencing a problem that I can not resolve despite trying many times:
After I update my App (now with Ionic 3) on my device I already had the app (with Ionic 2), the plugin Ionic Native Storage can’t get storage data in devices who have the old version (Ionic 2).
This code run perfectly, BUT, If a user have my App Old Version (with Ionic 2) and this user updates the application to the new App Version (Ionic 3), the USER STORAGE DATA IS LOST. I believe it’s because the name of database in Ionic 2 is different of the database name in Ionic 3.
Finally, my question: What should I do so that the Storage class can view the stored data?
From what I understand in the documentation, I do not need to specify the name of the database. It was this idea I followed from the tutorial. What I do not understand is because before I could do this:
constructor(public http: Http) {
this.storage = new Storage();
}
The Storage engine can be configured both with specific storage engine priorities, or custom configuration options to pass to localForage.
Based in the text above, I understand that specifying the bank name in NgModule is totally optional.
Do not specify the name of the bank really is good practice?