MatthieuLemoine / push-receiver

A library to subscribe to GCM/FCM and receive notifications within a node process.
https://medium.com/@MatthieuLemoine/my-journey-to-bring-web-push-support-to-node-and-electron-ce70eea1c0b0
MIT License
199 stars 75 forks source link

Last Persistend id #26

Open hotmeatballs opened 5 years ago

hotmeatballs commented 5 years ago

Hello! Is it possible to get all notifications from one last persistent id? And what is the best way for getting(not listening) notifications? Now im starting listening and with setTimeout closing connection. Thank you!

hotmeatballs commented 5 years ago

I found this in client.js

// Id of the last notification received clientEvent : [], receivedPersistentId : this._persistentIds,

I mean is it possible to send only one(!) last viewed persistent id?

MatthieuLemoine commented 5 years ago

I don't think so telling google that you have received a message does not mean you have received the previous ones.