I’m novice to mobile development, and I don’t know how to fix this issue.
I implemented Credential Manager API for google sign-in in my Kotlin app. I have my own backend I send the ID tokens I get through this api, then I authenticate users in my backend. This flow works perfectly in debug mode/emulators on Android Studio. But when I publish it to internal testing I get the NoCredentialException . I’m signing my app using google and I added their SHA-1 to the SHA certificate fingerprints in my Firebase settings. I can’t get past this error and all the info I’ve found so far was not very helpful.
I added both my debug keystore sha-1 and app signing sha-1 (provided by google) in the Firebase app and installed google-services.json. I'm able to sign-in using Credentials Manger when I open an emulator on Android Studio. but when I build the app send it to google play (Internal Testing) I can't use sign-in and it returns NoCredentialException. which is unexpected, the documentation states I needed App-signing key's SHA-1 which I have.