permissionStateAsync

external fun permissionStateAsync(options: PushSubscriptionOptionsInit = definedExternally): Promise<PermissionState>(source)

The permissionState() method of the PushManager interface returns a Promise that resolves to a string indicating the permission state of the push manager. Possible values are 'prompt', 'denied', or 'granted'.

MDN Reference