MatthieuLemoine / electron-push-receiver

A module to bring Web Push support to Electron allowing it to receive notifications from Firebase Cloud Messaging (FCM).
https://medium.com/@MatthieuLemoine/my-journey-to-bring-web-push-support-to-node-and-electron-ce70eea1c0b0
MIT License
191 stars 62 forks source link

receiving all the notifications when open the app #64

Open omerkhan8 opened 4 years ago

omerkhan8 commented 4 years ago

First of all thanks for this amazing pakage. I am facing one issue. when the app is closed obviously I don't receive any notifications, but when I open the app all of the notifications that have been received during the time interval when the app was closed started to show one after another, how can I stop this behaviour? and only show the notifications that came during the app is opened.

omerkhan8 commented 4 years ago

any solution to this??? i want to receive notifications only when my app is open

aquacode commented 2 years ago

I'm seeing something similar whereby messages set with ttl of say 10 seconds are still being delivered, or shall I say received, by my electron app using this library.

clampinou commented 2 years ago

Facing the same problem. Any solution please?

iamvishu commented 1 month ago

@omerkhan8 @aquacode You need to implement service worker file