Re : Desktop Display of Website Alerts



Has the Gnome team thought about working with Mozilla to allow Gnome to display notifications from their SimplePush API?

http://jbalogh.me/2012/01/30/push-notifications/
https://wiki.mozilla.org/Services/Notifications/Push/API

This would allow websites to send (requested) alerts to Gnome desktops, even if the alert recipient doesn't use Firefox, or isn't currently running Firefox.

Or is there some other better way?

Mark
I'm not part of the Gnome team, but I think it might be a better idea to create some a daemon which listens for simple push and then uses dbus to communicate the notification.

Back of the napkin math looks thusly:

App is installed:
App sends a message to dbus telling the daemon to Register with a PushServer
Daemon receives an Endpoint from the Push server and sends a message via dbus
App receives an Endpoint from dbus  and sends this to the App Server

Message is Received:
Daemon receives the message and extracts the UAID
Daemon sends the message on dbus
DBus routes the message to the app based on the UAID of the message

App is uninstalled:
App sends a notification to dbus.
Dbus routes the message to the daemon
Daemon unregisters the app

App is garbage collected:
It would be reasonable for the SimplePush daemon to periodically review which apps have consumed push messages and unregister applications which haven't been used in a while.

Of course I am not a dbus guy either so my thought experiment could be completely bonkers.


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]