Optionaloptions: NotificationOptionsReadonlypermission: NotificationPermissionThe requestPermission() static method of the Notification interface requests permission from the user for the current origin to display notifications.
OptionaldeprecatedCallback: NotificationPermissionCallback
The
permissionread-only static property of the Notification interface indicates the current permission granted by the user for the current origin to display web notifications.MDN Reference