ably / ably-asset-tracking-swift

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

Errors thrown for new publishing requests when offline #522

Open JakubJankowski opened 1 year ago

JakubJankowski commented 1 year ago

Description copied from the Android #871 issue:

Currently, the main public Publisher interfaces for tracking new Trackables (Publisher.track(), Publisher.add(), also Publisher.remove()) all throw ConnectionException in the event that we're unable to connect to Ably at the instant those functions are called. We discussed this internally and agreed that this isn't the most helpful design. Summary from internal discussion:

Consequently, agreed interpretations of trackable states are:

If any of the operations required to add and track failed for a non-retriable reason, then it's Failed. If all of the operations required are in one of the following states:

then it's Offline.

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