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: DestinationSet #567

Open AndyTWF opened 1 year ago

AndyTWF commented 1 year ago

Implement the following worker from android:

This worker sets the publisher's estimated arrival time based on the current time + the expected route duration.

This work is posted by the publisher when the destination is set (setDestination in android's publisher). We kind of have that method in Swift, but it's a bit spread out, so it may be worth a refactor.

The setDestination method on the publisher:

This method is called by the following workers:

When looking into this, we should also investigate how to “set a route” on mapbox, as this is something we’re doing in Android but don’t appear to be doing in iOS. We’re adding some extra buffer to our estimations to account for this.

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