Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 71531

Storage Lost when Updating from Ionic 3 to Ionic 4

$
0
0

@chrisjdev wrote:

I found that Ionic 3 serves applications from file:// and Ionic 4 serves applications from http:// for iOS and Android. This means that the WebView for each platform has databases IndexedDB and WebSQL stored for different hosts. So if you upgrade your application from Ionic 3 to Ionic 4 and you’re using the default IndexedDB for Storage, then the persistent storage will be lost. I realized recently that those weren’t reliable ways of saving data anyway, so I was planning to migrate to Cordova SQLite based storage, but I was finding now that I also need to migrate the old raw files before the WebView can use them. And use a different directory structure for the WKWebView vs UIWebView change on iOS. I wasn’t able to find many people talking about this issue. Are most projects using Cordova SQLite based storage, so this isn’t an issue? Or is there a database migration plan that I’m missing?

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 71531

Trending Articles



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