Persist everything in web app (V3)

Hello there!

I am building an iOS web app and i saw that on every launch the web app basically restarts
But i found out that the local storage if working in iOS “web app mode”

So my idea is basically to store the current route and the form data if there is any, so on every launch feels like does not restart

Has anyone did anything like this?
Any idea from anyone is really appreciated, thanks!

i already found a easy solution

  1. For the forms i just added “form-store-data” class
  2. For route i use LocalStorage to navigate on app init. The basic code: