I am unable to post an HTTPs call in android release apk. I have an android app which makes a https call for login, the request does not even reach the server. However it works in the debug apk version(http). The server logs not showing any error or warnings since the request itself doesn't reach the server. The apk is signed with the actual SHA certificate that is used to host the domain.
loginHandler(value) {
this.loader.display(true);
if (isNaN(value.email)) {
value.email = value.email.toLowerCase();
}
else {
value.email = value.email;
}
var loginValue = {
'username': value.email,
'password': value.password
}
this.loginService.loginService(loginValue)
.subscribe(res => {
this.loader.display(false);
this.message = '';
if (res.response.status === 'Success') {
} else {
this.errorMessage = res.response.validation;
this.errorMessage == 'Email not verified. Please check your email.'
? this.showResendVerification = true
: this.showResendVerification = false;
}
if (res.response.validation == "Email or phone number not verified.")
{
this.OTPHandler(value);
this.router.navigate(['/otp-verification']);
}
});
}