Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

PushManager

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.

interface PushManager {
getSubscription(): Promise<PushSubscription | null>;
permissionState(options?: PushSubscriptionOptionsInit): Promise<PermissionState>;
subscribe(options?: PushSubscriptionOptionsInit): Promise<PushSubscription>;
}
var PushManager: {
prototype: PushManager;
readonly supportedContentEncodings: ReadonlyArray<string>;
new (): PushManager;
}
;

§Methods

§
getSubscription(): Promise<PushSubscription | null>
[src]
§
permissionState(options?: PushSubscriptionOptionsInit): Promise<PermissionState>
[src]