ably / ably-asset-tracking-swift

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

Ably SDK Wrapper: Disconnect Should Always Succeed #554

Open AndyTWF opened 1 year ago

AndyTWF commented 1 year ago

Per this commit in Android:

https://github.com/ably/ably-asset-tracking-android/pull/942/commits/6d931ffbedb05ad4c69a3b6f401d264e23a749af

Ably.disconnect() should always succeed - if presence leave fails, detaching the channel achieves the same result, so there are no failure conditions.

Leaving presence should have a timeout of 30s. If leaving fails due to a connection exception, wait 15s and try again.

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