onActivityResult is never called by Google SignIn after verifying the new user

private void getSignIn() {

    Intent signInIntent = mGoogleSignInClient.getSignInIntent();
    startActivityForResult(signInIntent, RC_GET_AUTH_CODE);
}

In the above code, onActivityResult is never called by Google SignIn after verifying the new user. Can anyone help me to solve this issue?

1 answer

  • answered 2018-04-17 04:53 Jyot

    Things to take care.

    1. Check whether you are use this in fragment or activity. If you are using this in fragment check onActivityResult of your container or host Activity.

    2. If you are calling this in Activity, Check you does your Activity extends any other activity, if yes then check onActivity result of your parent activity.