是否有任何JavaScript库用于跨浏览器桌面通知? [英] Are there any JavaScript library for cross browser desktop notification?

查看:202
本文介绍了是否有任何JavaScript库用于跨浏览器桌面通知?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道W3C只是发布他们的草稿版本的Web通知以通知用户。因此,没有浏览器在其当前或最新版本的浏览器中实现此方法。





此外,如果我们将网站固定到Windows 7的任务栏,我们可以使用重叠图标通知用户。





详情:

  • https://github.com/ttsvetko/HTML5-Desktop-通知


  • 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

    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.

    More information: CreatePopup Method on MSDN

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

    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.

    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).

    解决方案

    These are some that I found:

    这篇关于是否有任何JavaScript库用于跨浏览器桌面通知?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

    查看全文
    登录 关闭
    扫码关注1秒登录
    发送“验证码”获取 | 15天全站免登陆