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