GO-Ve01
ServicesDevelopersBooksDictionaryPapersWikidataEncyclopediaSearchBabelCareersDeck

Notification: badge property

Web Notifications

Web Notifications

The **`badge`** read-only property of the Notification interface returns a string containing the URL of a small icon representing the web application itself. The badge is used by the platform when there is not enough space to display the full notification — for example, in a status bar. On Android, the badge should accommodate up to 4x display resolution (about 96×96px), and the image will be automatically masked to a monochrome silhouette.

See [Notifications with different images](/docs/Web/API/ServiceWorkerRegistration/showNotification#notifications_with_different_images) for a comparison of the three image options.

## Value

A string containing a URL.

## Specifications

## Browser compatibility

source: MDN Web Docs mirror · page

Cite this

"Notification: badge property". MDN Web Docs. CC BY-SA 2.5 (MDN). https://developer.mozilla.org/en-US/docs/Web/API/Notification/badge

JSON record · API collection · BibTeX · RIS · CSL-JSON · citation policy

Save to pass ·