I have registered my app in the google console as an Android Client. However, during the execution, my app never got onRegistrationComplete because GoogleSignInResult returned a status code 12501.
I have been researching for a while an I have discovered that if I enabled the Outh client as a web application the error would disappear. However, my app will never reach onSuccess. It would instead call onError with a value of INVALID_CREDENTIALS. This is caused because the IdToken is linked to the web application and not to the Android Client, so the credentials don't match.
Could you please clarify if the app has to be only declared as a web application or if I am doing something else wrong?
Hi there, I am trying to enable google auth in my app. I have been following your example, but it didn't work.
In you example, you request the IdToken in the GoogleSignInOptions.Builder
to later use it onRegistrationComplete
I have registered my app in the google console as an Android Client. However, during the execution, my app never got onRegistrationComplete because GoogleSignInResult returned a status code 12501.
I have been researching for a while an I have discovered that if I enabled the Outh client as a web application the error would disappear. However, my app will never reach onSuccess. It would instead call onError with a value of INVALID_CREDENTIALS. This is caused because the IdToken is linked to the web application and not to the Android Client, so the credentials don't match.
Could you please clarify if the app has to be only declared as a web application or if I am doing something else wrong?
Thanks