Notification.badge

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.

Syntax

var url = Notification.badge

Value

A USVString containing a URL.

Specifications

Specification Status Comment
Notifications API
The definition of 'badge' in that specification.
Living Standard Initial definition.

Browser Compatibility

Update compatibility data on GitHub
DesktopMobile
ChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidEdge MobileFirefox for AndroidOpera for AndroidiOS SafariSamsung Internet
Basic supportChrome Full support 53Edge Full support 18Firefox No support NoIE No support NoOpera Full support 39Safari ? WebView Android No support NoChrome Android Full support 53Edge Mobile No support NoFirefox Android No support NoOpera Android Full support 39Safari iOS No support NoSamsung Internet Android ?

Legend

Full support  
Full support
No support  
No support
Compatibility unknown  
Compatibility unknown

Document Tags and Contributors

Contributors to this page: fscholz, jpmedley, ThatGlennD
Last updated by: fscholz,