Fwd: [blink-dev] Intent to implement: Push API

FYI. For those not used to Blink's process, that doesn't mean the
feature is planning to ship yet but Google is working on this. The API
we are aiming for is a bit different from what the specification
currently describes as mentioned in the original message.

Cheers,
-- Mounir

----- Original message -----
From: Michael van Ouwerkerk <mvanouwerkerk@google.com>
To: "blink-dev" <blink-dev@chromium.org>, John Mellor
<johnme@chromium.org>
Subject: [blink-dev] Intent to implement: Push API
Date: Wed, 5 Mar 2014 18:00:44 +0000

Contact emails

mvanouwerkerk@chromium.org, johnme@chromium.org

Spec

https://dvcs.w3.org/hg/push/raw-file/tip/index.html

Summary

Provides a way for a web app to receive push messages from the app
server.
We are working with the spec editor to make this work based on Service
Workers. When a message is received, an event will be fired in a Service
Worker. The SW will be brought up if it is not yet running.

Motivation

This system enables communication from server to page (via a Service
Worker) even when the page is not running. This new capability is a
popular
request from web developers.

An example use case would be an email app that receives a push message
about a new email in the background. Messages can have a limited
payload,
or data can be fetched in the background in response to the push
message.

Compatibility Risk

Medium.

There is an implementation of an early version of the specification in
Firefox OS:
https://developer.mozilla.org/en-US/docs/Web/API/Navigator.push

The Push API has a dependency on ServiceWorker:
https://github.com/slightlyoff/ServiceWorker/ - its implementation in
Blink/Chromium and standardization are incomplete but making good
progress.

We expect to make some changes in the Push API specification based on
implementation experience.

Ongoing technical constraints

None.

Will this feature be supported on all five Blink platforms (Windows,
Mac,
Linux, Chrome OS and Android)?

Yes. On Android, we will integrate this with the GCM framework in Java.
On
all other platforms, we will generalize the infrastructure that is
already
in place for Chrome apps and extensions.

OWP launch tracking bug?

https://code.google.com/p/chromium/issues/detail?id=349474

Link to entry on the feature dashboard <http://www.chromestatus.com/>

http://www.chromestatus.com/features/5416033485586432

Requesting approval to ship?

No.

To unsubscribe from this group and stop receiving emails from it, send
an email to blink-dev+unsubscribe@chromium.org.

Received on Tuesday, 11 March 2014 21:45:51 UTC