I have turned off SSL pinning but still I am getting this error. However its working fine on iOS devices. Below is the code I am using
urlConnection = (HttpsURLConnection) openURLConnection(url.toString(), auth, 5000, 20000, initial);
urlConnection.setRequestMethod("GET");
urlConnection.setRequestProperty("Content-length", "0");
urlConnection.setRequestProperty("Content-Type", "application/json");
urlConnection.setDoInput(true);
if (lastUpdateCache != null) {
urlConnection.setRequestProperty("If-Modified-Since",
"" + ConversionUtils.getDateAsRFC2616String(lastUpdateCache));
}
urlConnection.connect();
I am not checking for certificates, even I tried with trusting all certificates but still getting the same issue.