Specifies a badge's value or glyph.
Element hierarchy
<badge>Syntax
<badge value = "1-99" | "none" | "activity" | "alert" | "available" | "away" | ...
version? = integer />
Key
- ? optional (zero or one)
Attributes and Elements
Attributes
| Attribute | Description | Data type | Required | Default value |
|---|---|---|---|---|
| value |
Either a numeric value or a string value that specifies a predefined badge glyph. Numerically, this value can accept any valid integer. A value of 0 clears the badge, values from 1-99 display as given, and any value greater than 99 displays as 99+. |
This attribute can be set to an integer or have one of the following values:
| Yes | None |
| version |
The version of the badge XML schema this particular payload was developed for. | integer | No | 1 |
Child Elements
None.
Parent Elements
This outermost (document) element may not be contained by any other elements.
Remarks
This table shows the available status glyphs.
| Status | Glyph | XML |
|---|---|---|
| none | No badge shown | <badge value="none"/> |
| activity | ![]() | <badge value="activity"/> |
| alert | ![]() | <badge value="alert"/> |
| available | ![]() | <badge value="available"/> |
| away | ![]() | <badge value="away"/> |
| busy | ![]() | <badge value="busy"/> |
| newMessage | ![]() | <badge value="newMessage"/> |
| paused | ![]() | <badge value="paused"/> |
| playing | ![]() | <badge value="playing"/> |
| unavailable | ![]() | <badge value="unavailable"/> |
| error | ![]() | <badge value="error"/> |
| attention | ![]() | <badge value="attention"/> |
Requirements
|
Namespace |
http://schemas.microsoft.com/notifications/2012/badge.xsd |
|---|
Build date: 10/26/2012










