javascripthtmlbrowsernotificationsweb-notifications

Notifications across all browsers


Are there any sort of notification system that works with all major browsers? I know chrome has their Notification API, Safari has push notifications and IE has pinned sites but is there some more general way to show notifications? I did find https://github.com/ttsvetko/HTML5-Desktop-Notifications which uses a combination of different notifications (though I still can't seem to get the demo working in IE).


Solution

  • Are there any sort of notification system that works with all major browsers?

    The mechanism https://notifications.spec.whatwg.org/ defines is the only standard notification system for web apps that’s intended to work the same across all browsers. It’s supported in all current major browsers: Firefox, Safari, Chrome, and all other Chrome-based browsers.

    https://developer.mozilla.org/docs/Web/API/Notifications_API/Using_the_Notifications_API