Hey,
I am trying to get google auth working with my android app.
I have an IOS app that connected to the same realm app and the google auth works there.
But for some reason, it can’t work with the android app.
I keep getting error 12500.
What can the problem be?
Code:
// Configure sign-in to request the user’s ID, email address, and basic
// profile. ID and basic profile are included in DEFAULT_SIGN_IN.
GoogleSignInOptions gso = new GoogleSignInOptions.Builder(GoogleSignInOptions.DEFAULT_SIGN_IN)
.requestEmail()
.requestServerAuthCode(web_client_id)
.build();
// Build a GoogleSignInClient with the options specified by gso.
mGoogleSignInClient = GoogleSignIn.getClient(this, gso);// Check for existing Google Sign In account, if the user is already signed in // the GoogleSignInAccount will be non-null. GoogleSignInAccount account = GoogleSignIn.getLastSignedInAccount(this);
// updateUI(account);