My app is live and I am pretty sure it does not issue a SHA key, Sometimes users can't log into the app by Google but sometimes they can.
I'm sure it's not a developer issue right now because we didn't change anything in the login flow for a few months. It was working fine earlier, but since a few days ago it is not working.
We have already integrated crashlytics, I will give you idea what is happening with code.
@Override
protected void onActivityResult(int requestCode, int resultCode, Intent data) {
super.onActivityResult(requestCode, resultCode, data);
// Result returned from launching the Intent from GoogleSignInApi.getSignInIntent(...);
if (requestCode == RC_SIGN_IN) {
if(resultCode == Activity.RESULT_OK) {
GoogleSignInResult result = Auth.GoogleSignInApi.getSignInResultFromIntent(data);
if (result != null) {
handleSignInResult(result);
}
} else {
showToast(getBaseActivity().getResources().getString(R.string.something_went_wrong));
hideProgressDialog();
}
}
}
Here expected result code is -1 but i receive 0 which is RESULT_CANCELED which generally returns when SHA key is mismatched, but we didnt changed anything in our code which will cause this issue, also this is happening for few users, for signed app as well as debug app. FYI we use same keystore for debug and signed apk, so SHA is always same.