ably / ably-asset-tracking-swift

iOS client SDKs for the Ably Asset Tracking service.
Apache License 2.0
9 stars 6 forks source link

Publisher Worker Queue: Subscribe to Presence #561

Open AndyTWF opened 1 year ago

AndyTWF commented 1 year ago

Implement the following AAT Android workers:

The SubscribeToPresenceWorker does nothing if the trackable is being or has been removed. It asynchronously waits for the ably channel to become attached, and then performs a presence subscribe operation. If waiting for the ably channel to attach results in failure, then FailTrackable work should be posted - this is different to Android, but we have opened an issue over there to bring the android equivalent worker to parity with the EnterPresenceWorker.

If presence.subscribe fails, then at then SubscribeToPresence work is posted for a retry.

On presence.subscribe succeeding, SubscribeToPresenceSuccess work should be posted.

SubscribeToPresenceSuccess work marks the trackable as having subscribed to presence and asks the publisher to update trackable states. It does nothing if the trackable has been removed.

This work is dependent on:

sync-by-unito[bot] commented 1 year ago

➤ Automation for Jira commented:

The link to the corresponding Jira issue is https://ably.atlassian.net/browse/SDK-3374