playgameservices / android-basic-samples

Google Play game services - Android samples
Apache License 2.0
970 stars 972 forks source link

Google Play screen keeps loading (spinning circle) after adding auth scopes #319

Open VirtualAutonomy opened 3 years ago

VirtualAutonomy commented 3 years ago

Very annoying bug completely stopping development work. The moment I add any auth scopes to my connection script, the login to Google Play never seems to conclude - it resulting in a spinning circle and an empty pop up box. I need the additional scope to exchange the auth code for an id token on my backend server.

Without the additional 0authScope below, it will connect but I require it for the reason above. At first I thought it might be because I had the wrong syntax but I've also tried without the url and just the string 'profile' - still, the same problem persists.

`

PlayGamesClientConfiguration config = new PlayGamesClientConfiguration.Builder()

.RequestServerAuthCode(false)

.AddOauthScope("https://www.googleapis.com/auth/userinfo.profile") 

.Build();

    PlayGamesPlatform.InitializeInstance(config);
    PlayGamesPlatform.Activate();
    PlayGamesPlatform.DebugLogEnabled = true;

`

I'm calling/testing the auth with:

Social.localUser.Authenticate((bool result) => { isAuthorized = result; if (!result) { ...