Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automatically load the last session when using it as a PWA #4

Open
Ijee opened this issue Jul 22, 2024 · 0 comments
Open

Automatically load the last session when using it as a PWA #4

Ijee opened this issue Jul 22, 2024 · 0 comments
Labels
enhancement New feature or request priority: low Low Priority UX UX Related enhancement / bug

Comments

@Ijee
Copy link
Owner

Ijee commented Jul 22, 2024

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

@Ijee Ijee added enhancement New feature or request UX UX Related enhancement / bug priority: low Low Priority labels Jul 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request priority: low Low Priority UX UX Related enhancement / bug
Projects
None yet
Development

No branches or pull requests

1 participant