Search code examples
androidgoogle-playgoogle-oauthgoogle-play-servicesgoogle-signin

Why is Google Play sign in "Confirm your choices" extra popup shown?


Currently, I am implementing the Google Play sign in and it works fine functionally.

When I test the implementation, I realized that there is one extra popup with the title "Confirm your choices" after allowing the first popup.

I couldn't find any way to get rid of that second step neither with configurations in the code nor with the setup on the Google Play console.

Confirm your choices popup

Does anybody know the reason that Google Play sign in shows this "Confirm your choices" popup and how can I get rid of that extra step?

Here is the GoogleSignInOptions:

GoogleSignInOptions googleSignInOptions = new GoogleSignInOptions.Builder(GoogleSignInOptions.DEFAULT_GAMES_SIGN_IN)
            .requestIdToken("some-id)
            .build();

Solution

  • This is intended behavior and not something you can get rid of, per the Google announcement of this feature in 2018 [1]. You can also find documentation about this in Google's policies for applications using Sign In With Google/OAuth, which includes Play [2].

    [1] https://developers.googleblog.com/2018/10/more-granular-google-account.html

    [2] https://developers.google.com/identity/protocols/oauth2/policies#unbundled-consent