Purpose
Desktop applications have the ability to set a Numerical Notification, frequently a white number on a round red background displayed in the corner of the application.
Workaround/Polyfill
It’s possible to change the favicon by using canvas, but browser icon will not show the number, and the favicon is not always visible in all browsers.
Example Usages
- Count of new messages (this site has something like it at the top)
- Number of people actively watching your video stream
- New notifications
- Error count
Constraints
- Value must be a number or a character in the list that follows to avoid abuse of this feature.
- Browser owners can decide if they want to show the notification on the tab, application icon, or both.
- If multiple tabs have Numerical Notification then it is up to the browser to combine the values, such as adding them all up and showing a sum, letting the user decide which domain or tab to use.
- The API could accept a foreground and background color, but it should be optional to support this because not all OS’s will allow that level of customization.
Valid values
- 0-9
- ?
- !
- … (three ellipses)
- not an exhaustive list
TBD
- Are permissions required before this feature can be used?
- Can JS be used to read the value of the current tab’s Numerical Notification?
- Can JS be used to read the value of the application’s Numerical Notification?