googlesamples / google-services

A collection of quickstart samples demonstrating the Google APIs for Android and iOS
https://developers.google.com
Apache License 2.0
3.05k stars 2.53k forks source link

Requesting Youtube Data API scope during GoogleSignInOptions build makes user stuck when signing in #492

Open Alimiel opened 3 years ago

Alimiel commented 3 years ago

Step 1: Are you in the right place?

Step 2: Describe your environment

Step 3: Describe the problem:

Requesting YouTube Data API readonly scope when building GoogleSignInOptions makes user stuck during user sign in with Google account. After entering e-mail and password, Google Sign In intent displays pop up with progress bar loading indefinitely.

Steps to reproduce:

  1. Use following code to build GoogleSignInOptions:
    val googleSignInOptions = GoogleSignInOptions.Builder(GoogleSignInOptions.DEFAULT_SIGN_IN)
            .requestScopes(Scope(YouTubeScopes.YOUTUBE_READONLY))
            .requestEmail()
            .build()
  2. Use the emulator with the specifications above to launch the app.
  3. Sign in using Google account providing gmail and password

Observed Results:

Expected Results:

Vivecstel commented 3 years ago

Same happens to me using google fit.

SapphireKing810 commented 3 years ago

Exact same thing is happening to me but with Google Calendars.

zhuwei commented 3 years ago

Same happens to me using google fit and google calendars.

csotiriou commented 2 years ago

Same happens to me with google fit.

there are other similar issues in this board, and no one has been able to provide guidance.