Skip to content

Enumeration: PermissionState

notifications.PermissionState

The Web Push notification subscription state.

Enumeration members

Denied

Denied = "denied"

The player has explicitly denied permissions, preventing any future permission requests.

Defined in

notifications.ts:32


Granted

Granted = "granted"

The player has granted permission.

Defined in

notifications.ts:29


Prompt

Prompt = "prompt"

The player hasn't granted permission yet, but we can prompt them to enable it.

Defined in

notifications.ts:35


Unsupported

Unsupported = "unsupported"

The player's browser doesn't support Web Push notifications, or the PWA is misconfigured.

Defined in

notifications.ts:38