Push notifications not working
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 25/100
- Tipo de issue
- Error
- Claridad
- Necesita aclaración
- Estado de actividad
- Estancado
- Stack tecnológico
- javascript
- Área
- full-stack, web-dev
Línea de trabajo
Empieza reproduciendo el comportamiento en Safari y Chrome, comprobando el registro del service worker, la acción Send Test Notification y las solicitudes a /api/v3/plugins/web-push/test. Compara la consola del navegador con el registro del servidor sobre el token CSRF no válido; se considera terminado cuando activar las notificaciones persiste y las notificaciones de prueba y de chat se entregan en los navegadores afectados.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
I can't get push notifications to work.
In Safari, nothing related to push notifications is working. If I toggle the "Enable push notifications on this device" switch, the "Currently notifying x device(s)" count doesn't increment, and when I refresh the page, the toggle is off again. If I click "Send Test Notification", regardless of whether "Enable push notifications on this device" is on or off, nothing happens (no "Cannot send test notification as push notifications are not enabled on this device" warning and no /api/v3/plugins/web-push/test request in the network tab of the dev tools). There's also no "ServiceWorker registration succeeded" message in the console, but there aren't any error messages either.
In Chrome, the service worker registers successfully, and I can enable push notifications, but I can't send/receive them. If I click on "Send Test Notification", I get an error message in the console: Failed to load resource: net::ERR_CONNECTION_CLOSED /api/v3/plugins/web-push/test:1. If I send myself a chat message from another account, I get an in-app notification, but no push notification and no error message.
I'm also seeing this error on the server:
2025-04-09T18:46:53.799Z [4567/124] - error: POST /api/v3/plugins/web-push/test
invalid csrf token
However, that error only appears once, and I've attempted to send several notifications, so I'm guessing it's not the root of the issue.
- Lenguaje dominante
- JavaScript
- Estrellas
- 2
- Forks
- 7
- Merge medio
- 13 h 31 min
- PR fusionados (30 d)
- 7
Guía de contribución
No hay ninguna guía de contribución indexada para este repositorio
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de NodeBB/nodebb-plugin-web-push
-
Dependency Dashboard Abierto
Dificultad 5/5 Más de una semana Aptitud para principiantes 10/100
Todos los issues de NodeBB/nodebb-plugin-web-push
Issues similares
-
bug confirmed issue
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
open-webui/open-webui#30750 · 1 comentario ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
-
Mend: dependency security vulnerability untriaged
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100