api.Notification.requestPermission_static

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

In Edge version 14 on 2016-08-02

In Firefox version 22 on 2013-06-25 Note: From Firefox 70 onwards, cannot be called from a cross-origin iframe. From Firefox 72 onwards, can only be called in response to a user gesture such as a click event.

In Firefox for Android version 22 on 2013-06-25 Note: From Firefox Android 79 onwards, cannot be called from a cross-origin iframe. From Firefox Android 79 onwards, can only be called in response to a user gesture such as a click event.

Not in Internet Explorer

In Quest Browser version 5.0 on undefined

In Opera version 23 on 2014-07-22

In Opera Android version 29 on 2015-04-28

In Safari version 15 on 2021-09-20 Note: Only supported the deprecated callback syntax.

In Safari on iOS version 16.4 on 2023-03-27 Note: The parent Notification interface is undefined unless the page is a web app saved to the home screen. The app's manifest must have a non-default display value.

In Samsung Internet version 4.0 on 2016-03-11

Not in WebView Android

Not in WebView on iOS