Implement an Analytics Interceptor Pro
Try creating an Interceptor that retries an API call if it fails just once.
Progressively, start moving network operations common to all API calls to an Interceptor.
To check the official documentation, head over to https://square.github.io/okhttp/interceptors/.
Learn how to implement an Interceptor to add custom headers that are useful for analytics.