notifications
Display notifications to the user, using the underlying operating system's notification mechanism. Because this API uses the operating system's notification mechanism, the details of how notifications appear and behave may differ according to the operating system and the user's settings.
To use this API you need to have the "notifications" permission.
The notification looks the same on all desktop operating systems. Something like:

Browser compatibility
|
Desktop |
Mobile |
|
Chrome |
Edge |
Firefox |
Internet Explorer |
Opera |
Safari |
WebView Android |
Chrome Android |
Firefox for Android |
Opera Android |
Safari on IOS |
Samsung Internet |
NotificationOptions |
Yes |
17 |
45 |
? |
Yes |
No |
? |
? |
48 |
? |
No |
? |
TemplateType |
Yes |
17 |
45Only the 'basic' type is supported.
|
? |
YesOnly the 'basic' type is supported.
|
No |
? |
? |
48Only the 'basic' type is supported.
|
? |
No |
? |
clear |
28 |
17 |
45 |
? |
25 |
No |
? |
? |
48 |
? |
No |
? |
create |
28 |
17 |
45 |
? |
25 |
No |
? |
? |
48 |
? |
No |
? |
getAll |
29 |
17 |
45 |
? |
25 |
No |
? |
? |
48 |
? |
No |
? |
onButtonClicked |
28 |
17 |
No |
? |
25 |
No |
? |
? |
No |
? |
No |
? |
onClicked |
28 |
17 |
47 |
? |
25 |
No |
? |
? |
48 |
? |
No |
? |
onClosed |
28 |
17 |
45 |
? |
25 |
No |
? |
? |
48 |
? |
No |
? |
onShown |
No |
No |
56 |
? |
No |
No |
? |
? |
56 |
? |
No |
? |
update |
28 |
17 |
No |
? |
25Not supported on macOS.
|
No |
? |
? |
No |
? |
No |
? |