The Badging API is a new web platform API that allows installed web apps to set an application-wide badge, shown in an operating-system-specific place associated with the application (such as the shelf or home screen).
Sorry! This browser doesn't appear to support the badging API. The API is currently available as an origin trial in Chrome 73+ for Windows, and macOS only.
Note: In order for this demo to work, it must be an installed
Progressive Web App.
Check out the source for this sample, or remix it on Glitch.