Post

Replies

Boosts

Views

Activity

Reply to Local storage data getting deleted in ios 13 version in ipad devices
We are also using a similar structure. Using local store with a Vue app in mobile devices. We implemented a native iOS wrapper to store such sensitive things like user access token or some other preferences.. And implemented a two way communication between the web app and the native app, where web app can request certain things and then native app would provide a response for that request.. And with JS that seem to be working quite well.. Nowadays iOS is really aggresively killing apps due to memory issues. One easy way to reproduce this is to take a long exposure photo and notice suddenly most of your apps will be restarted when bringing the app to foreground. So don't rely on storing crucial information you need at runtime in the web view local storage. But you can certainly rely on iOS Keychain services.. *Just to make it clear, we do not rely on local storage, but we do set certain properties in the local storage so that we can continue to test our web app in the regular desktop browser without the iOS wrapper being present. So local storage is just a fallback in case values should be provided by iOS app are not present.
Jul ’21