Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Notifications in B2G

63 views
Skip to first unread message

JOSE MANUEL CANTERA FONSECA

unread,
Mar 21, 2012, 12:36:37 PM3/21/12
to dev...@lists.mozilla.org, dev-w...@lists.mozilla.org
Hi there,

How do you plan to handle notifications in B2G ? The use cases are something like

Calendar Application warns the user of an upcoming event
Twitter App gives a heads up because the user has been mentioned

I think these use cases are similar to those met by the proposed Web Notifications API [1] but I don't know if this is something only pushed by Google or if for B2G there is something similar in mind.

On the other hand we would also need a privileged API to allow the Notifications App to be notified of new notification arrival, get access to the items in the notifications queue, remove the notifications, launch the Web Activity associated to a notification and the like.

[1] http://dev.w3.org/2006/webapi/WebNotifications/publish/Notifications.html

________________________________
Este mensaje se dirige exclusivamente a su destinatario. Puede consultar nuestra pol?tica de env?o y recepci?n de correo electr?nico en el enlace situado m?s abajo.
This message is intended exclusively for its addressee. We only send and receive email on the basis of the terms set out at
http://www.tid.es/ES/PAGINAS/disclaimer.aspx

Doug Turner

unread,
Mar 21, 2012, 1:17:18 PM3/21/12
to mozilla...@googlegroups.com, dev-w...@lists.mozilla.org, dev...@lists.mozilla.org
I'd hope we could use the Notifications API that you mentioned [1]. I implemented it the "desktop" part of the API in Fennec on Android and it works pretty well.

I think Fabrice might be implementing notification in Gaia. ?

Doug

Doug Turner

unread,
Mar 21, 2012, 1:17:18 PM3/21/12
to mozilla...@lists.mozilla.org, dev-w...@lists.mozilla.org, dev...@lists.mozilla.org
On Wednesday, March 21, 2012 9:36:37 AM UTC-7, JOSE MANUEL CANTERA FONSECA wrote:

Jonas Sicking

unread,
Mar 21, 2012, 3:52:12 PM3/21/12
to Doug Turner, dev-w...@lists.mozilla.org, dev...@lists.mozilla.org, mozilla...@googlegroups.com
On Wed, Mar 21, 2012 at 10:17 AM, Doug Turner <doug....@gmail.com> wrote:
> On Wednesday, March 21, 2012 9:36:37 AM UTC-7, JOSE MANUEL CANTERA FONSECA wrote:
> I'd hope we could use the Notifications API that you mentioned [1].  I implemented it the "desktop" part of the API in Fennec on Android and it works pretty well.
>
> I think Fabrice might be implementing notification in Gaia.  ?

There's two features that I've seen in notification systems on
iPhone/Android which the Notifications API currently can't handle.

On iPhone, when you get a notification regarding a calendar event it
displays when the event is taking place. I.e. something like "in 10m".
What's really cool is that the time is constantly updated so even if
it takes you a couple of minutes before you look at the screen the
information is still correct. I.e. it displays "in 8m". Technically
this could be implemented using the replaceID by updating the message
every minute.

On Android, some notifications include a progress bar. Specifically
the notification of when a update is being downloaded, but I think
this could be useful for arbitrary notifications too. You can combine
this with the replaceID feature to show an updating progress bar as
some task is being finished.

/ Jonas

JOSE MANUEL CANTERA FONSECA

unread,
Mar 21, 2012, 6:25:45 PM3/21/12
to Jonas Sicking, Doug Turner, dev-w...@lists.mozilla.org, dev...@lists.mozilla.org, mozilla...@googlegroups.com


El 21/03/12 20:52, "Jonas Sicking" <jo...@sicking.cc> escribió:
+1 is there a bug related to this on which we can request the replace
functionality or other necessary for these use cases?

>
>/ Jonas
>_______________________________________________
>dev-b2g mailing list
>dev...@lists.mozilla.org
>https://lists.mozilla.org/listinfo/dev-b2g


Este mensaje se dirige exclusivamente a su destinatario. Puede consultar nuestra política de envío y recepción de correo electrónico en el enlace situado más abajo.

Doug Turner

unread,
Mar 21, 2012, 6:29:35 PM3/21/12
to JOSE MANUEL CANTERA FONSECA, dev-w...@lists.mozilla.org, Jonas Sicking, mozilla...@googlegroups.com, dev...@lists.mozilla.org
Send an email to the wg mailing list. It was, in fact, discussed last
week. I think the attribute name will be 'tag'. But you should double
check.

Doug
0 new messages