Re: [push-api] Technique to Detect Endpoint Prior to register() (#95)

> Certainly the same browser is likely to use different services on different platforms

Yeah it's *sometimes* the OS that dictates push service but it's *sometimes* the browser.

> You could expose a service identifier as a DOMString for which the content is not specified. But that is still a bit sad because it enshrines forward incompatibility as part of the API: any new service would go unrecognized and not work until the site and service registration are updated.

How about something like `serviceWorkerRegistration.push.proprietaryService` which is string containing the ID of the service as in "GCM", or an empty string if the service is fully standard. Services that are considered fully standard if the communication is fully standard *and* registration with the service unnecessary or follows some yet-to-be-defined standard automatable pattern.

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

Received on Monday, 15 December 2014 14:40:16 UTC