I've read the push subscription can get out of sync between the browser and the push service.
I've seen two remediations, both look to be non-standard:
I presume any application should handle both of these points at which a subscription can be identified to be out-of-sync (and any/all).
Questions:
The pushsubscriptionchange
event is documented as part of the Push API specification. That should be considered authoritative, and it mentions there onpushsubscriptionchange
is exposed as part of ServiceWorkerGlobalScope
.
I don't know offhand whether pushsubscriptionchange
event is fired in all browsers that support the Push API as of this writing, but I believe the general idea is that it's the (eventual) solution to the use case you describe.