Question: what about shared device

Abierto
#353 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
20/100
Tipo de issue
Nueva funcionalidad
Claridad
Necesita aclaración
Estado de actividad
Estancado
Stack tecnológico
html
Área
web-dev

Línea de trabajo

Start by reading the Push API specification around service workers and subscription ownership. The issue describes notifications crossing between users who share a browser, but does not identify a file, test, or expected behavior. First clarify how subscriptions should be isolated across accounts and what should happen on logout or session expiration; done would require an agreed behavior and tests for those cases.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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

Lenguaje dominante
HTML
Estrellas
158
Forks
43
Merge medio
2 d 6 h
PR fusionados (30 d)
2

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de w3c/push-api

Todos los issues de w3c/push-api

Issues similares

Más issues de Web Dev

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.