Skip to content
This repository was archived by the owner on Jul 2, 2025. It is now read-only.
This repository was archived by the owner on Jul 2, 2025. It is now read-only.

SignIn Dialog from GoogleSignInClient.getSignInIntent() not returning correct result after rotation #345

@aaronvargas

Description

@aaronvargas

When running the sample for SignInClient everything works correctly when no device rotation occurs. But if you rotate the device after showing the SignIn dialog you receive incorrect results in onActivityResult.

  • Device: Nexus 9
  • OS version: Android N
  • SDK version: 26
  • [Android] Google Play Services version: 11.6.2

Steps to reproduce:

  1. Start sample with device in portrait orientation and select SignInActitivity
  2. tap Sign In and wait for Account selector Dialog
  3. Rotate device to landscape, now select account
  4. UI doesn't update to show logout and disconnect. onActivityResult() shows correct Request code of 9001. Result code of cancelled (although account was chosen) and task has ApiException 12502 - SIGN_IN_CURRENTLY_IN_PROGRESS

I've confirmed that there are not several attempts to startActivityForResult() for the signIn attempt as the error indicates.

https://developers.google.com/android/reference/com/google/android/gms/auth/api/signin/GoogleSignInStatusCodes.html#SIGN_IN_CURRENTLY_IN_PROGRESS

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions