0

google sigin error ,code working real device is working good ,but not working on emulator getting error ApiException 12500 ,thanks ,and also i am new

@Override
protected void onActivityResult(int requestCode, int resultCode, @Nullable @org.jetbrains.annotations.Nullable Intent data) {
    super.onActivityResult(requestCode, resultCode, data);

    if(requestCode == RC_SIGN_IN) {
        Task<GoogleSignInAccount> task = GoogleSignIn.getSignedInAccountFromIntent(data);
        GoogleSignInAccount account = task.getResult();
        authWithGoogle(account.getIdToken());


        //GoogleSignInAccount account = task.getResult();
        //authWithGoogle(account.getIdToken());
    }
}
Frank van Puffelen
  • 499,950
  • 69
  • 739
  • 734

0 Answers0