I’m using ionic to create a PWA, however I’m running into trouble on iOS. The current state is dropped as soon as a user leaves the app, so even if an app is briefly swapped, you end up back at the root page. Android thankfully doesn’t have this issue.
Is there any way of storing the current nav state in localStorage or indexedDB, and then re-injecting it into the app when the user re-opens the app so it restores their last view?
I haven’t tested with 11.3 yet, will do later today, but according to this summary on how things are with 11.3, nothing has changed:
“Your PWA won’t keep state between sessions, if the user gets out of a PWA, it will be restarted when coming back, so if you need the user to validate an email, SMS or do a two-factor authentication, have that in mind to offer a proper solution.”