ConstonFired when the user pressed a button in the notification.
ConstonFired when the user clicked in a non-button area of the notification.
ConstonFired when the notification closed, either by the system or by user action.
ConstonFired when the user changes the permission level.
ConstonFired when the notification is shown.
ConstonFired when the user clicked on a link for the app's notification settings.
Clears an existing notification.
The id of the notification to be updated.
Creates and displays a notification.
Contents of the notification.
Creates and displays a notification.
Identifier of the notification. If it is empty, this method generates an id. If it matches an existing notification, this method first clears that notification before proceeding with the create operation.
Contents of the notification.
Retrieves all the notifications.
Retrieves whether the user has enabled notifications from this app or extension.
Updates an existing notification.
The id of the notification to be updated.
Contents of the notification to update to.
Permissions:
notificationsNot allowed in: Content scripts, Devtools pages