Re: [w3c/push-api] Pass removed subscriptions as a property of the `pushsubscriptionchange` event (#193)

With the current spec, unless I save either the user id or the old subscription info in IDB, how would the ServiceWorker know which user the new subscription is for in `pushsubscriptionchange`? 

Storing that info is doable of course - it would just be nice if the browser would take care of that for us considering its going to be necessary for every developer trying to make user-specific push notifications reliable across refreshes. If giving an ID to subscriptions that stays the same across refreshes is out of the question, then simply including the old subscription info in `pushsubscriptionchange` as @kitcambridge suggested  would work just as well at easily letting us know what subscription we are replacing and which user it belongs to

---
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/push-api/issues/193#issuecomment-225804561

Received on Tuesday, 14 June 2016 07:47:26 UTC