W3C home > Mailing lists > Public > whatwg@whatwg.org > January 2014

Re: [whatwg] Notifications: usage feedback

From: Anne van Kesteren <annevk@annevk.nl>
Date: Mon, 13 Jan 2014 15:07:37 +0000
Message-ID: <CADnb78jFJMs9oZgnXPyOuvFrNB4YJVZUVsnMVZ3MJjrpvMvtkQ@mail.gmail.com>
To: Jonas Sicking <jonas@sicking.cc>
Cc: WHATWG <whatwg@lists.whatwg.org>, James Burke <jrburke@gmail.com>
On Wed, Nov 20, 2013 at 12:45 AM, Jonas Sicking <jonas@sicking.cc> wrote:
> On Tue, Nov 19, 2013 at 5:37 AM, Anne van Kesteren <annevk@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.


-- 
http://annevankesteren.nl/
Received on Monday, 13 January 2014 15:08:03 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 17:00:15 UTC