W3C home > Mailing lists > Public > public-web-notification@w3.org > October 2010

Re: Notification types

From: Simon Dittlmann <simon.dittlmann@googlemail.com>
Date: Tue, 26 Oct 2010 23:45:17 +0200
Message-Id: <F7F7A978-BE7B-460A-9D8D-CF0BB828CFC3@googlemail.com>
To: public-web-notification@w3.org
> Has the concept of notification types/priorities been discussed? It 
> seems to be a common feature in existing notification APIs to have 
> either a priority system or a category system or both. This has a number 
> of benefits for the user; for example they can set a filter on the 
> notification priority at some level on a system-wide basis or the 
> display can format the priority as appropriate for the notification type.

I agree with you. Thereby you can differentiate between notifications from applications (you've got email) and from devices (your printer is out of paper). Furthermore with a priority system it would be possible that a fire detector notification is more important than an email notification.

> The obvious way to expose this sort of thing in the API would be a set 
> of named constants for different types and an extra, optional, argument 
> to the notification constructor (or factory function) for the type constant.
IMHO a factory function is a good idea.

Cheers

  -- Simon
Received on Thursday, 28 October 2010 12:32:05 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 17 December 2012 14:48:27 GMT