notification working

This commit is contained in:
2026-04-20 15:23:28 +05:30
parent 93dbf2023c
commit 237ba6b3c1
12 changed files with 523 additions and 86 deletions

View File

@@ -15,7 +15,9 @@ if ('serviceWorker' in navigator) {
}
// Show FCM notifications when app is open in foreground
listenForegroundMessages()
listenForegroundMessages().catch((err) => {
console.error('[FCM] Failed to set up foreground message listener:', err)
})
createRoot(document.getElementById('root')!).render(
<StrictMode>