api.Navigator.setAppBadge

Spec

MDN URL

Status

On the standards track: Yes

Is Experimental: No

Is Deprecated: No

Browser Support

In Chrome version 81 on 2020-04-07 Note: Windows and macOS since Chrome 81. ChromeOS since Chrome 91. Linux offers no universal badging API on the operating system level.

Not in Chrome Android

In Edge version 81 on 2020-04-13 Note: Windows and macOS since Edge 81. ChromeOS since Edge 91. Linux offers no universal badging API on the operating system level.

Not in Firefox

Not in Firefox for Android

Not in Internet Explorer

Not in Node.js

Not in Quest Browser

Not in Opera

Not in Opera Android

In Safari version 17 on 2023-09-18 Note: Badging is supported for installed web apps on macOS Sonoma and higher. Passing 0 as an argument will clear the badge instead of displaying an unnumbered dot.

In Safari on iOS version 16.4 on 2023-03-27 Note: Badging is supported for web apps saved to the home screen. Passing 0 as an argument will clear the badge instead of displaying an unnumbered dot.

Not in Samsung Internet

Not in WebView Android

Not in WebView on iOS Note: Badging is supported for web apps saved to the home screen.