playgameservices / play-games-plugin-for-unity

Google Play Games plugin for Unity
Other
3.44k stars 959 forks source link

Authentication flow stalls on white popup with infinite loader after 'Choose An Account' Unity 2020.3.6f1 #3036

Closed cephaswilco closed 3 years ago

cephaswilco commented 3 years ago

Authentication flow stalls on white popup with infinite loader after 'Choose An Account' Unity 2020.3.6f1.

Screenshot_20210516-132516_Google Play services Screenshot_20210516-132526_Google Play services

This all works when I don't have .AddOauthScope("profile") or .RequestEmail() in the builder, but then I never receive a IdToken. Others pointed out that I have to add a scope in order to receive a token.

Anyways, when I finally add these calls I get to the Choose an Account page, and then when I choose an account I just end up at a white pop up with an infinite spinner.... I am attempting to use playgameservices with playfab. I think this is the last hurdle. I believe I have all of my credentials set up properly in playfab/google play console/ google cloud etc.

Any ideas why this is happening? Is this a version issue?

Thanks.

RocksteadyDog commented 3 years ago

Hello The same problem It works for me only with auto login google play games, without auto login infinite loader after 'Choose An Account'

cephaswilco commented 3 years ago

Glad I am not the only one. I am 99.99% sure all my credentials are set properly...

RocksteadyDog commented 3 years ago

Hello again I solved the problem I think the problem is OAuth consent screen I created a new project Play Games(not app) in Play Console Next: Oauth consent screen -> Empty Logo -> Publis App -> AND DONE!

Worst experience ever)

Screenshot_4 Screenshot_5

cephaswilco commented 3 years ago

Ok - Yep over the weekend I wasn't able to publish the game service because it wouldn't let me upload a log. And now I can see you can also publish the OAuth consent. I went through multiple tutorials and never saw that step. Great find! will close this ticket but hopefully other people are able to find it incase they have same issue.