W3C home > Mailing lists > Public > public-web-notification@w3.org > June 2012

Re: Matching tags

From: John Gregg <johnnyg@google.com>
Date: Wed, 20 Jun 2012 06:19:06 -0700
Message-ID: <CAEd9o4SoGooMBSHRJj_N8TevgTa3=gWewKS4VMq4wbsa-ciRPQ@mail.gmail.com>
To: James Graham <jgraham@opera.com>
Cc: public-web-notification@w3.org
On Wed, Jun 20, 2012 at 4:13 AM, James Graham <jgraham@opera.com> wrote:

> It seems like when tags match the old notification is replaced by the new
> notification. This seems confusing (and possibly hard to implement?) if
> there is any substantive difference between the notifications. Why not just
> discard the new notification?
Part of the point of the tag (previously known as "replaceId") is to update
a notification.  One motivating use case is a chat application (see section
7.3 of the spec) -- rather than many incoming chats from the same person
causing multiple notifications or only the first one, the application can
consolidate or update as it prefers.

Some platforms (e.g., libnotify) support it natively, and if the platform
does not the spec explicitly says that it's fine to discard the old
notification and show the new one.

Received on Wednesday, 20 June 2012 13:19:38 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 19:53:13 UTC