import { type PushManager } from "https://deno.land/x/yxz@0.32.0/typing/lib.dom.ts";
This Push API interface provides a way to receive notifications from third-party servers as well as request URLs for push notifications. Available only in secure contexts.
Methods
getSubscription(): Promise<PushSubscription | null>
permissionState(options?: PushSubscriptionOptionsInit): Promise<PushPermissionState>
subscribe(options?: PushSubscriptionOptionsInit): Promise<PushSubscription>