Do other major browsers (Firefox, IE, Safari, Opera) have a built-in开发者_运维知识库 desktop notifications API like the one Chrome has?
If so, please leave a link to their documentation.
The notifications that Chrome has built in is based on the W3C Web Notifications specification.
As of today, the only browser that support THIS SPEC is Chrome. You can find a listing of browser support at CanIUse.com
You can enable them in Firefox with this extension
https://addons.mozilla.org/en-US/firefox/addon/tab-notifier/
Don't know about opera or safari but in firefox you can find this : https://addons.mozilla.org/en-US/developers/docs/sdk/latest/modules/sdk/notifications.html
You could check in here: https://github.com/ttsvetko/HTML5-Desktop-Notifications
Demo page http://ttsvetko.github.io/HTML5-Desktop-Notifications/
I know this is a 3 years old question. But here's my link to Opera Browser's desktop notification. I use Opera.
http://blogs.opera.com/desktop/2014/08/opera-developer-25-supports-web-notifications/
精彩评论