Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

169
Vistas
Push notification showing "This site has been updated in the background"

I have node.js web-push backend server sending push events to a ServiceWorker in the frontend, and the ServiceWorker shows a notification every time it receives a push event. However, instead of showing the notification that I programmed into the ServiceWorker, it is showing the default message "This site has been updated in the background."


Things I have tried: event.waitUntil(self.registration.showNotification(title, payload)),
return self.registration.showNotification(title, payload),
return new Promise((resolve,reject)=>{self.registration.showNotification(title, payload); resolve()}),
event.waitUntil(new Promise((resolve,reject)=>{self.registration.showNotification(title, payload); resolve()}))

(service-worker.js)

self.addEventListener('push', event => {
    const payload = {
        body: "Testing...",
        icon: "https://parity.cf/images/logo.png"
    };
    event.waitUntil(self.registration.showNotification("Sample Notification", payload));
});

I am going just a little bit crazy trying to figure this out, does anyone know what to do? Thanks in advance!

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda