Because there is no way to navigate to a specific URL when used as a PWA it may be a good idea to save the users session
periodically or on app close and then to load it in during start up when detecting it run as a pwa (see https://web.dev/learn/pwa/detection).
I am not sure if there is a good way to listen to tab close events but that needs to be looked up.
To not mess up with the routing when navigating to a specific URL there can be a "load last session" button in the import modal UI
instead which then acts like a regular import.
The session can be accessed with the exportSession function in the simulation service and should be saved and retrieved in the
settings service because that's where all the localStorage related things are handled.
Reasons to add this feature
It would make the PWA version feel more like an actual app I suppose.
Feature description
Because there is no way to navigate to a specific URL when used as a PWA it may be a good idea to save the users session periodically or on app close and then to load it in during start up when detecting it run as a pwa (see https://web.dev/learn/pwa/detection). I am not sure if there is a good way to listen to tab close events but that needs to be looked up.
To not mess up with the routing when navigating to a specific URL there can be a "load last session" button in the import modal UI instead which then acts like a regular import.
The session can be accessed with the exportSession function in the simulation service and should be saved and retrieved in the settings service because that's where all the localStorage related things are handled.
Reasons to add this feature
It would make the PWA version feel more like an actual app I suppose.
Additional information (optional)
No response