crow-misia / go-push-receiver

A library to subscribe to GCM/FCM and receive notifications within Go.
MIT License
22 stars 11 forks source link

How to receive new notifications only. #18

Open cyneptic opened 8 months ago

cyneptic commented 8 months ago

i've setup the listener and its working, the only issue is that whenever I restart the program the client.Events channel keeps getting filled with old notifications that ive already seen on the previous run. is there a way to either offset the messasges or only receive the pushes that come after the listener has started?

crow-misia commented 8 months ago

Fixed a bug where received IDs were not being sent as parameters when login to Firebase.

Also, I added a processing to make the ID persistent in the example, please refer to it.