mozilla / chromeless

DEPRECATED - Build desktop applications with web technologies.
http://mozillalabs.com/chromeless
761 stars 117 forks source link

Desktop notifications #42

Closed lloyd closed 3 years ago

lloyd commented 13 years ago

there is some support for notifications in both addon-kit and gecko, we should wrap and expose a simple way for apps to throw toast.

mikedeboer commented 13 years ago

Titanium 'borrowed' the Fluid.app API for this:

That API will be compatible across platforms (Growl/ libnotify/ windows custom)

mikedeboer commented 13 years ago

The addon-sdk also has a 'notifications' module, but the API doesn't seem to do Growl notifications just yet. It might be a limitation in the xulrunner version we are using(?) If so, than we might consider upgrading to a newer version...

mikedeboer commented 13 years ago

I tried upgrading XulRunner to b12pre (by changing the _config.py values in impl/mozfetcher), but after a correct download and extraction, it failed to launch the app with the following error:

LSOpenURLsWithRole() failed with error -10810 for the file /Volumes/(...)/chromeless/build/My Chromeless App.app.

... So I reverted back to b7pre... :(

lloyd commented 13 years ago

I can look at this, yes I can. maybe tomorrow. It looks like an issue in appification (maybe sdk layout has changed).

lloyd commented 13 years ago

now that we're upgraded to 4.0, desktop notifications should be acheivable with what's already in platform:

https://bugzilla.mozilla.org/show_bug.cgi?id=573588 https://developer.mozilla.org/en/XPCOM_Interface_Reference/nsIDOMDesktopNotification

lloyd commented 13 years ago

throwing this in the 0.3 milestone as a stretch goal.