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

Question: what about shared device #353

Open
stefanKP50 opened this issue Jul 5, 2022 · 0 comments
Open

Question: what about shared device #353

stefanKP50 opened this issue Jul 5, 2022 · 0 comments

Comments

@stefanKP50
Copy link

stefanKP50 commented Jul 5, 2022

As i understood, endpoint is done against browser. So what happens if 2 users use same browser ?

  • user1 subscribe to notifications; then log out
  • user2 use the same device (let say a desktop) and same browser and subscribe to notifications
  • user2 will receive user1 notifications !
  • coming back user1 will receive user2 notifications...

I know a solution could be to unregister service worker on user1 logout, but what about session expiration and / or not logged out user (just close pwa) ? And i imagine unregister sw could have related miss configuration (no more notification ?)

I'm not sure to be clear, but did someone have this situation to take care ?
Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant