Interface PushManager
interface PushManager {
getSubscription(): Promise<PushSubscription>;
permissionState(options?: PushSubscriptionOptionsInit): Promise<PermissionState>;
subscribe(options?: PushSubscriptionOptionsInit): Promise<PushSubscription>;
}
getSubscription(): Promise<PushSubscription>;
permissionState(options?: PushSubscriptionOptionsInit): Promise<PermissionState>;
subscribe(options?: PushSubscriptionOptionsInit): Promise<PushSubscription>;
}
Index
Methods
getSubscription
- get
Subscription (): Promise<PushSubscription> Returns Promise<PushSubscription>
permissionState
- permission
State (options?): Promise<PermissionState> Parameters
Optional
options: PushSubscriptionOptionsInit
Returns Promise<PermissionState>
subscribe
- subscribe(options?): Promise<PushSubscription>
Parameters
Optional
options: PushSubscriptionOptionsInit
Returns Promise<PushSubscription>
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.
MDN Reference