Abstract
Defines a title for the notification. Depending on container and choice of notification mechanism, this might not be shown.
Optional
options: NotificationOptionsNotification options.
A handler for the click event. It is triggered each time the user clicks the notification.
A handler for the error event. It is triggered each the the notification encounters an error.
Protected
Optional
optionsNotification options.
Protected
titleDefines a title for the notification. Depending on container and choice of notification mechanism, this might not be shown.
Static
permissionA string representing the current permission to display notifications.
Static
requestRequests permission from the user to display notifications.
A Promise that resolves to the permission picked by the user.
Optional
callback: NotificationPermissionCallbackAn optional callback function that is called with the permission value. Depcrecated in favor of the promise return value
Creates a new Notification object instance which represents a user notification.