subscribeToLiveActivity

fun subscribeToLiveActivity(liveNotificationId: String): ListenableFuture<String>

Subscribes this device to a backend live notification (Live Activity) so it starts receiving its push updates.

The device must already be a registered push subscriber (call createSubscriber first). The returned future resolves to the backend LA subscriber id, which is also persisted so unsubscribeFromLiveActivity can be called later without tracking it yourself.

Return

future with the assigned LA subscriber id.

Parameters

liveNotificationId

backend id of the live notification to follow.