Intent to Ship: Notification `actions` and `vibrate` attributes

48 views
Skip to first unread message

Peter Beverloo

unread,
May 16, 2016, 9:41:15 AM5/16/16
to blink-dev, John Mellor, Sanghyun Park
Contact emails
johnme@chromium,org, sh919...@samsung.com (did the work)
pe...@chromium.org (flag flipper)

Spec

Summary
Support for both notification action buttons and developer-provided vibrations have shipped already, but we weren't able to expose the matching read-only properties on instances of the Notification object because of their intended semantics.

Now that the bindings team has kindly added support for FrozenArray and [SameObject], we can get these out of the door too :-).



Is this feature supported on all six Blink platforms (Windows, Mac, Linux, Chrome OS, Android, and Android WebView)?
All platforms where notifications are supported.

Debuggability
Improved, because developers (and DevTools) can now read back the action and vibrate properties passed to a shown notification.

It also allows developers to feature-check for presence of action buttons and vibration patterns:

const actionButtonsSupported = Notification.prototype.hasOwnProperty('actions');
const vibrateSupported = Notification.prototype.hasOwnProperty('vibrate');

Interoperability and Compatibility Risk
No risks.

OWP launch tracking bug

Entry on the feature dashboard

Chris Harrelson

unread,
May 18, 2016, 12:52:11 PM5/18/16
to Peter Beverloo, blink-dev, John Mellor, Sanghyun Park
LGTM1

--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.

Rick Byers

unread,
May 18, 2016, 2:57:03 PM5/18/16
to Chris Harrelson, Peter Beverloo, blink-dev, John Mellor, Sanghyun Park
LGTM2

Dimitri Glazkov

unread,
May 23, 2016, 5:42:25 PM5/23/16
to Peter Beverloo, blink-dev, John Mellor, Sanghyun Park
LGTM3.
Reply all
Reply to author
Forward
0 new messages