Re: [push-api] Rename (un)register to (un)subscribe (#98)

The other SW APIs are less related to messaging though, so perhaps it's ok to be named differently? i.e. perhaps the following is actually fine?:

```js
navigator.serviceWorker.register(...);
navigator.serviceWorker.ready.then(registration -> {
    registration.pushManager.subscribe().then(...);
});
```

I suppose it does conflict a little with the `serviceWorkerRegistration.syncManager.register` API currently suggested for Background Sync in slightlyoff/BackgroundSync/issues/20, though there's still time to change that.

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

Received on Monday, 15 December 2014 18:55:49 UTC