PushManager
The PushManager
interface of the Push API provides a way to receive notifications from third-party servers as well as request URLs for push notifications. Available only in secure contexts.
Functions
Link copied to clipboard
The PushManager.getSubscription()
method of the PushManager interface retrieves an existing push subscription.
Link copied to clipboard
Link copied to clipboard
suspend fun permissionState(options: PushSubscriptionOptionsInit = definedExternally): PermissionState
The permissionState()
method of the string indicating the permission state of the push manager.
Link copied to clipboard
fun permissionStateAsync(options: PushSubscriptionOptionsInit = definedExternally): Promise<PermissionState>
Link copied to clipboard
The subscribe()
method of the PushManager interface subscribes to a push service.
Link copied to clipboard
fun subscribeAsync(options: PushSubscriptionOptionsInit = definedExternally): Promise<PushSubscription>