Reload pwa
-
Hello
I’ve made a PWA using Quasar framework. This app is about registering puntuations using a data table component.
The app works fine in my phone, but if I want to change or switch to another app or desk and then come back to my app, then it reloads and lose the information (like a reset) -
I leave you my app URL just to see this behavior:
http://puntuacions.awardspace.biz/ -
This is normal PWA behavior. Out of Quasar’s control. However, you can retain the app state with LocalStorage.
-
But… what about offline PWA mode? Why does it reload?
-
Regarding offline mode, it depends on the platform. On desktop it should work flawlessly. On Android there is offline support, while on iOS they just started to really work on offline mode in v11.3 or 11.4.
-
I tested it on Android device and it worked. But not on my iphone (in spite of having updated it to v.11.4.1)
-
If you use IndexedDB (via the excellent LocalForage plugin: https://localforage.github.io/localForage/) this works flawlessly on the iOS. I store all my important data locally, and it is still there when relaunching the PWA.