Automatic connection recovery

Note: Automatic connection recovery is supported on Android, iOS, macOS, and Windows.

An application might temporarily lose internet connectivity when its user moves between internet connection points. For example, a disconnection could occur when a user is roaming between cellular networks, or when a device switches between an LTE mobile data connection and a home wireless network connection.

The Vivox SDK provides network connection recovery functionality for connection loss of up to 30 seconds.

VivoxService.Instance.ConnectionRecovering and VivoxService.Instance.ConnectionRecovered are events that can be subscribed to in order to track when the connection is recognized as lost and recovery begins and when the connection is recovered.

A VivoxService.Instance.ConnectionFailedToRecover event will be fired if a session resume fails after the application attempts to reconnect to the network.

Important: If an additional system exists to reconnect users, you must allow the default Vivox system to finish attempting to recover before another system tries to recover the connection. If the Vivox attempts aren't completed it can result in a connection recovery loop.