This commit is contained in:
pradeepkumar committed 2026-04-06 14:06:55 +05:30
1 parent cfc6cd540a
commit 62545d0114
2 files changed
+62 -14

No files matched your search

@@ -47,7 +47,7 @@ export function NotificationProvider() {
const registered = await notificationService.requestPermissionAndRegister();
console.log('[NotificationProvider] Registration result:', registered);
if (registered) {
unsubscribe = notificationService.setupForegroundHandler((payload) => {
unsubscribe = await notificationService.setupForegroundHandler((payload) => {
console.log('[NotificationProvider] Foreground message received:', payload);
addToast(payload);
});