Get immediate access to this and 4,000+ other videos and books.

Take your career further with a raywenderlich.com Ultimate Pro subscription. With unlimited access to over 40+ books and 4,000+ professional videos in a single subscription, it’s simply the best investment you can make in your development career.

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.

Contributors

Comments