We're looking for a user researcher to understand the needs of developers and designers. Is this you or someone you know? Check out the post: https://mzl.la/2IGzdXS

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

FeatureChromeEdgeFirefoxInternet ExplorerOperaSafari
Basic support53 No No No39 ?
FeatureAndroid webviewChrome for AndroidEdge mobileFirefox for AndroidOpera AndroidiOS SafariSamsung Internet
Basic support No53 No No39 ? ?

Document Tags and Contributors

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