api.Notification.Notification

Spec

MDN URL

Status

On the standards track: Yes

Is Experimental: No

Is Deprecated: No

Browser Support

In Chrome version 20 on 2012-06-26

In Chrome Android version 42 on 2015-04-15 Note: A notification can only be sent from a service worker. To show a notification, see ServiceWorkerRegistration.showNotification(). This constructor always throws a TypeError exception.

In Edge version 14 on 2016-08-02

In Firefox version 22 on 2013-06-25

In Firefox for Android version 22 on 2013-06-25

Not in Internet Explorer

In Quest Browser version 5.0 on undefined Note: A notification can only be sent from a service worker. To show a notification, see ServiceWorkerRegistration.showNotification(). This constructor always throws a TypeError exception.

In Opera version 23 on 2014-07-22

In Opera Android version 29 on 2015-04-28 Note: A notification can only be sent from a service worker. To show a notification, see ServiceWorkerRegistration.showNotification(). This constructor always throws a TypeError exception.

In Safari version 7 on 2013-10-22

In Safari on iOS version 16.4 on 2023-03-27 Note: This constructor throws a ReferenceError exception, unless the page is a web app saved to the home screen. The app's manifest must have a non-default display value. A notification can only be sent from a service worker. To show a notification, see ServiceWorkerRegistration.showNotification().

In Samsung Internet version 4.0 on 2016-03-11 Note: A notification can only be sent from a service worker. To show a notification, see ServiceWorkerRegistration.showNotification(). This constructor always throws a TypeError exception.

Not in WebView Android

Not in WebView on iOS