From 2495f6ca950bf23e6e4c394297268258554c48d2 Mon Sep 17 00:00:00 2001 From: altaf-creator Date: Tue, 30 Dec 2025 00:19:33 +0800 Subject: IT'S ALMOST WORKING --- frontend/sw.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'frontend/sw.js') diff --git a/frontend/sw.js b/frontend/sw.js index 5dcf564..187a66b 100644 --- a/frontend/sw.js +++ b/frontend/sw.js @@ -1,7 +1,7 @@ self.addEventListener('push', (e) => { const data = e.data.json(); console.log(data); - self.registration.showNotification("notif received", { - body: "received", + self.registration.showNotification(data.title, { + body: data.body, }); }); -- cgit v1.2.3