W3C home > Mailing lists > Public > whatwg@whatwg.org > May 2013

Re: [whatwg] suggestions for the Notifications API (http://notifications.spec.whatwg.org/)

From: Anne van Kesteren <annevk@annevk.nl>
Date: Fri, 3 May 2013 17:49:04 +0100
Message-ID: <CADnb78iwnz-3spBcNqnbdqdCX+F0c_TmXjaGsPorDuR7PB1FsA@mail.gmail.com>
To: alonn <alonisser@gmail.com>
Cc: WHATWG <whatwg@whatwg.org>
On Fri, May 3, 2013 at 4:48 PM, alonn <alonisser@gmail.com> wrote:
> 1. Having a way to check for the current permission without initiating a
> new Notification object first. something like webkit has (I'm not sure it's
> not deprecated) window.webkitNotification.checkPermission()
> I saw this isn't in the api, and I think having this would be a great

That would be Notification.permission. You can request using
Notification.requestPermission(callback).


> 2.having a collection to iterate over notification instances  (from my page
> only).

We might get this at some point. See the recent notifications threads.


> 3.having to set the "title" only when initiating the Notification object,
> instead in the dictionary NotificationOptions Iooks inconsistent to me. my
> instinctive attempt was to set the title together with the rest of the
> notification options. but that won't work. I think it belongs there  (or at
> least, also there)

Only title is required, basically. It's similar to how new Event() behaves.


--
http://annevankesteren.nl/
Received on Friday, 3 May 2013 16:49:29 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:59 UTC