Re: [push-api] Provide support for subscription association (#182)

One question that came to mind - developers tend to call subscribe() multiple times, also as a means to get an existing subscription, since the API only supports once.

What happens when calling subscribe() with an `applicationServerKey` that differs from the subscription that's currently stored by the UA? Should we throw an error? `InvalidAccessError` sounds most appropriate, but `NoModificationAllowedError` (less common) might also work. Happy to address this in a follow-up.

---
Reply to this email directly or view it on GitHub:
https://github.com/w3c/push-api/pull/182#issuecomment-176238989

Received on Thursday, 28 January 2016 15:36:32 UTC