1 2 3 4 5 6 7
self.addEventListener('push', (e) => { const data = e.data.json(); self.registration.showNotification(data.title, { body: data.body, icon: data.icon, }); });