[whatwg] Notifications: usage feedback

Anne van Kesteren annevk at annevk.nl
Mon Jan 13 07:07:37 PST 2014

On Wed, Nov 20, 2013 at 12:45 AM, Jonas Sicking <jonas at sicking.cc> wrote:
> On Tue, Nov 19, 2013 at 5:37 AM, Anne van Kesteren <annevk at annevk.nl> wrote:
>> What are you thinking of? We define some kind of UI hints a developer
>> can register for when initiating a new notification? Might work I
>> suppose.
> I think we should have a defined way for an author to bring forward a
> page when the notification is clicked.
> This could be either a property on the notification
> "openCreatingWindowWhenNotificationIsClickedPlease: true".
> Or define that a service worker is notified about a click, and then
> enable the service worker to find a particular window (which may or
> may not be connected to the service worker) and be able to bring that
> window to the foreground.
> Or a way for a window to be notified when the notification is clicked
> such that it can bring itself forward using window.focus().
> Or something else.
> The goal is to be able to answer the question "If I'm a web developer
> and want to bring forward the window connected to a notification when
> the notification is clicked, what code should I write?"

I filed https://github.com/whatwg/notifications/issues/6 to track this
going forward. I don't really have concrete ideas at the moment. Once
it's more clear what it means for a page to be an application I hope
this will fall out a bit more naturally.


More information about the whatwg mailing list