subscribeAsync

external fun subscribeAsync(options: PushSubscriptionOptionsInit = definedExternally): Promise<PushSubscription>(source)

The subscribe() method of the PushManager interface subscribes to a push service.

MDN Reference