subscribe

suspend fun subscribe(options: PushSubscriptionOptionsInit = definedExternally): PushSubscription(source)

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

MDN Reference