Duplicated notifications
Closed this issue · 1 comments
airDjura commented
I get the same notifications twice whenever I fire an event from BE.
I'm using SSR mode
I managed to make it work by deleting one part of the code from the file: node_modules/@bg-dev/nuxt-fcm/dist/runtime/server/routes/firebase-messaging-sw.get.js
messaging.onBackgroundMessage((payload) => {
console.log("[firebase-messaging-sw.js] Received background message ", payload);
self.registration.showNotification(
payload.notification.title,
payload.notification);
});
I have no idea why, but it works normally without that line.
becem-gharbi commented