NetworkUtilities

public final class NetworkUtilities

Groups the networking utilities for a given Tealium instance onto a single object.

networkClient and networkHelper make a single attempt for each request and never retry it. Every response still feeds the empirical connectivity of the connectivityManager.

To retry failed requests, derive a client with NetworkClient.newClient(withAdditionalInterceptors:), adding RequestInterceptors.retryWithBackoff() to retry retryable failures with a backoff and/or RequestInterceptors.retryWhenConnected(connectivityManager:) to wait for connectivity to return before retrying. Use NetworkClient.makeNetworkHelper() to send requests through the derived client with the NetworkHelperProtocol API.