On 2014-07-21, 12:22 PM, Tyler Smith wrote:
Summary: New Push API to replace the current specification for SimplePush. Purposes include 1) Switching to Promise, which was sorely needed. 2) Establishing that the data field of messages is required. 3) Establishing that all background communication happens over HTTPS 4) Agreeing that the DOM API should not have to care what Push backend the device is using 5) Playing nicer with the interface exposure model (earlier we just wouldn't show navigator.push to apps without permission)
Can you please clarify what you mean here? How are you looking to expose the new property?
Also, I'm not sure if you're just trying to implement this hidden behind a preference or if you are thinking about shipping it by default.
6) Supporting a feature set that at least one other implementer has agreed upon, rather than what we just cooked up to support on fxos
I assume that is Blink? (That's great news BTW!)
Bug: https://bugzilla.mozilla.org/show_bug.cgi?id=1038811 Link to Spec (informal disussion): https://docs.google.com/document/d/1EeUDLsMLc1dtAk9uHVwnP1N8AFnH7vVVgec_h7BWlI4/edit?pli=1# Distilled Spec: Promise<PushRegistration> register() => registration, or promise rejected if fails Promise<boolean> unregister() => true if successful, else false Promise<DOMString> hasPermission() => “need-ask”/”granted”/”denied” (never fails) Promise<boolean> isRegistered() => true, false, or promise rejected if unknown Platform Coverage: FXOS, Desktop FF, and Firefox Mobile Preference: dom.push.enabled We don't intend to break backwards compatibility with the old push system in the immediate future. The navigator property for the new push API is pushRegistrationManager, so the thinking right now is that for a few releases the two will be offered side by side as completely distinct services, but with the intent to remove the old push system at some point.
Hmm, the spec here <https://w3c.github.io/push-api/index.html> talks about navigator.push. Is that something that is going to change in the spec?
Cheers, Ehsan _______________________________________________ dev-platform mailing list [email protected] https://lists.mozilla.org/listinfo/dev-platform

