[Question] Persisted data lost when moving to WKWebView #28
Comments
Brief update after a short check with @mhartington: One possibility seems to be persisted data migration to SQLite while an app is still out there using UIWebView. Once done, a future move of the app over to WKWebView should be all good. A brief test showed that the SQLite persisted data is kept intact. If already using localForage you might want to look at localforage-cordovasqlitedriver Likely some extra patchwork but can't tell of a better alternative so far (unless you're ok with losing already persisted data). |
Is your app Ionic 1 or Ionic 2? We're making some changes to the storage utils in Ionic 2 to get rid of Basically, giving you a heads up so you don't invest a bunch of time and end up having to re-write something again. I think this drops in Beta 12. Thanks, |
@danbucholtz Ionic 1. |
Cool. Your best bet is going to be reading the data from Thanks, |
Cool, thanks for the ideas @danbucholtz. |
Early observation for an existing Cordova Ionic (1.3.x) app - once the app is switched over to WKWebView is seems that previously persisted data (from UIWebView) is lost. In our case we rely on localForage and angular-localForage with a default driver (asyncStorage/indexedDB). I have verified that this also applies to pure localStorage.
To begin this case I'd like to query if anyone else has noticed the same. We need to know what kind of workaround or strategy to apply in order to transition the data to the new app instance running within WKWebView.
The concern is that existing users might end up with invalidated user sessions, loss of locally stored data etc.
The text was updated successfully, but these errors were encountered: