Articles tagged in: Retrofit

Retrofit 2 — How to Trust Unsafe SSL certificates (Self-signed, Expired)

We were hesitant to write this tutorial, but due to the many, many requests: in this tutorial you will learn how to ignore the connection's security handshake and let Retrofit accept any, even bad SSL certificates. This includes revoked, expired or self-signed SSL certificates. Warning: ignoring SSL certificate validity is …

Continue Reading

Retrofit 2 — Unwrapping Envelope Responses with Custom Converter

We recently worked on a project where the API wrapped all responses into an envelope. For example, when the app requested the user info, it always got a wrapped response: { "serverInfo": { "apiVersion": "0.0.1a" }, "statusCode": 200, "payload": { "username": "Norman", "id": 42 } } The payload was the actual interesting information. Previously, …

Continue Reading

Explore the Library

Find interesting tutorials and solutions for your problems.