Firefox Desktop Notifications for Gmail

At work, I use Google Chrome mostly. When I access Gmail, it asks if I wish to enable desktop notifications, but oddly at home I don’t see it. That’s because I use Firefox.

With so many tabs open, it’s definitely a good thing to have desktop notifications (something like Growl for Mac), especially since I use Google Chat on the Gmail page sometimes. I was hoping that Gmail detects a capable browser based on the availability of Javascript objects, instead of some stupid sites that detect the User Agent string, so that the functionality could at least be injected into the page using a Greasemonkey script or a Firefox plugin.

It turns out that someone has already written a Firefox plugin to implement desktop notifications, and that Gmail does in fact detect the presence of Javascript objects instead of blindly relying on the UA string. It’s called ff-html5notifications. With this plugin installed, Gmail will now ask if you want to enable desktop notifications, just as if you were using Chrome.

Chrome implements the Web Notifications API (draft specifications at this point) via the window.webkitNotifications object. It is unclear whether Firefox would support this API in the future, but the ff-html5notifications plugin provides a good solution for now.


6 comments on “Firefox Desktop Notifications for Gmail

  1. Thanks for posting! ff-html5notifications works great for me so far!

  2. Mifas says:

    Awesome… I am searching for this option in long time. Thanks. 🙂

  3. trust says:

    great article, thank you for sharing this link.

  4. duketurtle says:

    Thank you for sharing! I’m using the extension now myself — been looking for it for weeks!!!!!

  5. aranor says:

    Try the extension tab notifier.
    It provides desktop notifications more similar to Chrome’s ones (e.g. more windows are piled up vertically).
    Besides, if you want, it monitors the title of the pages to update you about websites that don’t support desktop notifications at all (e.g. other web-based emails).

    • darell tan says:

      You should at least have mentioned that you are the author for Tab Notifier.

      Nevertheless, this seems like a more featureful addon that only recently gained webkitNotifications API support. I’ll give it a try when I find the time. 🙂

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.