I am using retrofit in android to connect with server.
public class ApiClient {
public static final String BASE_URL = \"https://example.com/\";
priva
I strongly discourage doing this
Short answer - subclass HostNameVerifier, over-ride verify() to always return true.
This has better options
Long answer - check my (getting pretty old) blog here: Making Android and SSL Work Together
Maybe the best option for your scenario
Drop the https to http for your test server, then the logic doesn't have to change.
HTH