ably / ably-asset-tracking-swift

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

Subscriber Worker Queue: Update Connection State #591

Open AndyTWF opened 1 year ago

AndyTWF commented 1 year ago

Implement the following worker:

This worker is used as soon as the subscriber is initialised (in its constructor / init block) - a connection state listener is added to the Ably SDK that queues this worker every time the connection state changes.

Similarly to https://github.com/ably/ably-asset-tracking-swift/issues/586, this worker sets the last connection state for the ably connection and triggers an update of trackable states.

We need to make changes to make Swift behave like the android’s emitStateEventsIfRequired() method, which is planned as part of https://ably.atlassian.net/browse/SDK-3410, so we should do that first.

Estimate: 2 days

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-3409