- From: Kit Cambridge <notifications@github.com>
- Date: Mon, 28 Nov 2016 10:37:46 -0800
- To: w3c/push-api <push-api@noreply.github.com>
Received on Monday, 28 November 2016 18:38:21 UTC
This looks terrific. Passing both `oldSubscription` and `newSubscription` is nice, and avoids having the worker make an extra `subscribe()` call to get a new endpoint, or figure out if it still has permission. Making `oldSubscription` nullable seems a little strange: the browser knows the service worker had a subscription, but can't construct a full `PushSubscription` object? The browser could resubscribe and pass `newSubscription`, but that might not be useful to the app server if it depends on knowing the old endpoint. Could we treat this similarly to #61 and not fire `pushsubscriptionchange`? For invalidation, I agree with @johnmellor. `waitUntil` doesn't offer enough guarantees that the new subscription info made it to the app server. Using the subscription for the first time is pretty clear. -- 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/228#issuecomment-263354691
Received on Monday, 28 November 2016 18:38:21 UTC