requestPermissionAsync

external fun requestPermissionAsync(deprecatedCallback: NotificationPermissionCallback = definedExternally): Promise<NotificationPermission>(source)

The requestPermission() static method of the Notification interface requests permission from the user for the current origin to display notifications.

MDN Reference