notification working
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user