This is an experimental technology
Check the Browser compatibility table carefully before using this in production.
The badge
property of the Notification
interface returns the URL of the image used to represent the notification when there is not enough space to display the notification itself.
var url = Notification.badge
A USVString
containing a URL.
Specification | Status | Comment |
---|---|---|
Notifications API The definition of 'badge' in that specification. | Living Standard | Initial definition. |
Desktop | ||||||
---|---|---|---|---|---|---|
Chrome | Edge | Firefox | Internet Explorer | Opera | Safari | |
Basic support | 53 | 18 | No | No | 39 | ? |
Mobile | |||||||
---|---|---|---|---|---|---|---|
Android webview | Chrome for Android | Edge Mobile | Firefox for Android | Opera for Android | iOS Safari | Samsung Internet | |
Basic support | No | 53 | No | No | 39 | No | ? |
© 2005–2018 Mozilla Developer Network and individual contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/Notification/badge