Notifications across all browsers

Ph33ly picture Ph33ly · Jul 28, 2015 · Viewed 13.1k times · Source

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

Answer

sideshowbarker picture sideshowbarker · Aug 9, 2015

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

The mechanism defined at https://notifications.spec.whatwg.org/ is the only standard notification system for web applications 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/en-US/docs/Web/API/Notifications_API/Using_the_Notifications_API