On 05/11/2013 17:07, jose llopis wrote:
Nope, what i want is to show for example on a single notification 'x
sent you: blabla' if its a single message then if x sends another
message what i want to show on the alrwady shown notification a
different message 'x sent you n messages' where n is the number of messages
The new notification API should support that kind of scenario by using
tags. Basically whenever you send a new notification with a tag matching
one of the existing ones the old notification will be replaced by the
one you just sent. See here for details:
https://developer.mozilla.org/en-US/docs/WebAPI/Using_Web_Notifications#Dealing_with_repeated_notifications
This is however not supported on Firefox OS 1.0.1 and 1.1 but should be
supported on 1.2.
Gabriele
_______________________________________________
dev-b2g mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-b2g