Re: [push-api] Push subscription should require active Service Worker (#92)

Peter noted that we can just wait for the SW to be activated, the promise callbacks can wait a little. That seems like a nice way of avoiding rejection in this possibly common case (thanks John):

```js
navigator.serviceWorker.register(...).then(function(serviceWorkerRegistration) {
    serviceWorkerRegistration.pushManager.subscribe(...);
});
```

---
Reply to this email directly or view it on GitHub:
https://github.com/w3c/push-api/issues/92#issuecomment-70140668

Received on Thursday, 15 January 2015 18:59:33 UTC