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

View File

@@ -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);
});