subscribe

abstract suspend fun subscribe(params: PushSubscribe): PushSubscription

Adds a Web Push API subscription to receive notifications.

Each access token can have one push subscription. If you create a new subscription, the old subscription is deleted.