App Badging API

Overview

App Badging API allows installed web apps to set an application-wide badge on the app icon, shown in an operating-system-specific place such as homescreen, taskbar, or dock.

Badging makes it easy to notify the user without any interruption, when there is a new activity that might require their attention, or to show the number of unread notifications.

Demo

https://nectar.website/demo/web-apis/app-badging/

For testing the App Badging API, please make sure that Nectar is installed on the homescreen.

Usage

You can refer to the code present in /partials/web-apis/app-badging.html file and use it accordingly.

Reference

https://developer.mozilla.org/en-US/docs/Web/API/Badging_API

Last updated