# notifications
Documentation: [Chrome Notifications API](https://developer.chrome.com/docs/extensions/reference/notifications)
A promise-based wrapper for the Chrome `notifications` API to create and manage desktop notifications.
## Methods
- [clearNotification(notificationId)](#clearNotification)
- [createNotification(options, notificationId?)](#createNotification)
- [getAllNotifications()](#getAllNotifications)
- [getNotificationPermissionLevel()](#getNotificationPermissionLevel)
- [updateNotification(options, notificationId)](#updateNotification)
- [isAvailableNotifications()](#isAvailableNotifications)
- [clearAllNotifications()](#clearAllNotifications)
## Events
- [onNotificationsButtonClicked(callback)](#onNotificationsButtonClicked)
- [onNotificationsClicked(callback)](#onNotificationsClicked)
- [onNotificationsClosed(callback)](#onNotificationsClosed)
- [onNotificationsPermissionLevelChanged(callback)](#onNotificationsPermissionLevelChanged)
---
### clearNotification
```
clearNotification(notificationId: string): Promise
```
Clears the notification with the specified ID, resolving to `true` if the notification existed and was cleared.
### createNotification
```
createNotification(
options: chrome.notifications.NotificationOptions,
notificationId?: string
): Promise
```
Creates a notification with the given options and optional ID, returning the notification ID.
### getAllNotifications
```
getAllNotifications(): Promise