Hi, thanks for the great work that you have put into this.
I have implemented the electron-push-receiver on my sample app, and it works like a charm.
I was wondering however if there is a functionality to be able to unregister the device, for example, when a user logs out of the app they should not receive push notifications.
// This is how to do it when using the service worker on web
navigator.serviceWorker.getRegistrations().then(registrations => {
map(registrations, registration => {
registration.unregister()
})
})
I also understand that its not that big of a deal because not a lot of people logout of their app just to keep it open and not close it entirely, because once they do close the app they wont receive push notifications.
Hi, thanks for the great work that you have put into this.
I have implemented the electron-push-receiver on my sample app, and it works like a charm. I was wondering however if there is a functionality to be able to unregister the device, for example, when a user logs out of the app they should not receive push notifications.
I also understand that its not that big of a deal because not a lot of people logout of their app just to keep it open and not close it entirely, because once they do close the app they wont receive push notifications.