Are there any JavaScript library for cross browser desktop notification?

16,617

Solution 1

These are some that I found:

Solution 2

I don't know of a cross-browser lib; but desktop-notifications are coming to Mozilla Firefox post 4.0 as well. They're implemented in trunk already: https://bugzilla.mozilla.org/show_bug.cgi?id=573588

Though apparently this new feature won't get included in FF 4.0: https://bugzilla.mozilla.org/show_bug.cgi?id=594543

But in the long term, an api related to but different from the webkit will be available.

Not sure about opera, however.

Share:
16,617
Admin
Author by

Admin

Updated on June 11, 2022

Comments

  • Admin
    Admin about 2 years

    I know W3C just publish their draft version of Web Notification to notify user. So, there is no browser that implement this method in their current or latest build browser.

    Web Notifications Overview

    After I search a lot of webs for finding all possible desktop notification in most browser.I found any 2 major browser that should support this.

    1.Google Chrome and Webkit-based browser

    Notification of Windows
    (source: google.com)

    Notification of Mac
    (source: google.com)

    Notification of Linux
    (source: google.com)

    We can use native Desktop notification function to show message like the following picture.

    More infomation: The Chromium Projects - Desktop Notifications

    2.Internet Explorer

    For IE 5.5+, we can use createPopup function to notify use like in Google Chrome but it's much flexible more that Google Chrome.

    Create Popup

    More information: CreatePopup Method on MSDN

    Moreover, if we pin website to Windows 7 taskbar, we can use overlay icon to notify user too.

    Overlay Icon
    (source: microsoft.com)

    More information: IE9, Site Specific Browsers, and adding your own Jump List Items to Pinned Tabs

    Other browser

    I think we can use Pines Notify jQuery plugin to create in-browser notification.

    Pines Notify

    Or do you have any desktop notification library or idea for suggesting me?

    Thanks,

    PS. If it does not have fine library, I will create it with myself.

    Update I

    Since IE8, it does not allow us to display popup outside current browser. For example, when IE is minimized, all popups are not displayed. So, Google Chrome is only one browser that has fully web notification API (FF 4 also has non-documented web notification API but it not work for now).

  • Quentin
    Quentin almost 13 years
    Dealing with multiple, inconsistent, non-standard APIs is why people write cross-browser libraries!
  • desbest
    desbest almost 13 years
    I agree, but desktop notifications have not become a part of the HTML5 standard, and that standard was finalised in 2011. (To be exact, WHATWG has stupidly gone to rolling day versions and scrapped version numbers, attracting hateful comments for their announcement, but let's not get into that.)
  • Bjorn
    Bjorn about 12 years
    A new dom element inside a web page is not in any shape or form a Desktop notification.
  • Beachwalker
    Beachwalker almost 12 years
    @Bjorn: He is searching for a javascript library. This library has a builtin solution for creating toaster-like messages within a page. Some mimic web-apps looks like desktops and uses them... so my solution is a valid option for creating toaster messages as he requests otherwise he could use a web gateway to a local app. Please consider to take back your downvote.
  • Beachwalker
    Beachwalker almost 12 years
  • Beachwalker
    Beachwalker almost 12 years
    @Bjorn: The sample within the question is showing a jquery solution for toasters like the live example fro dojo, too. (Why is the same solution using another framework invalid?)
  • user456584
    user456584 over 9 years
    @Vikas "Better" is a relative term, but one consideration is browser support: While notify.js appears to only support FF, Safari, and Chrome, HTML5-Desktop-Notifications purportedly supports some versions of IE as well.
  • Mawg says reinstate Monica
    Mawg says reinstate Monica over 7 years
    That IE support will probbaly be make/break in some corporate situations