# 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/>

{% hint style="info" %}
For testing the App Badging API, please make sure that Nectar is installed on the homescreen.
{% endhint %}

## 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>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://pmsgz.gitbook.io/nectar/advanced/web-apis/app-badging.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
