fix
This commit is contained in:
@@ -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);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user