playgameservices / play-games-plugin-for-unity

Google Play Games plugin for Unity
Other
3.45k stars 963 forks source link

GetAnotherServerAuthCode Nothing Happens #2339

Closed Fiercy closed 5 years ago

Fiercy commented 5 years ago

I am able to get AuthToken just fine the first time I login. The moment I minimize my app I need another token for PlayFab login and the callback from this function just doesn't execute.

It's not throwing any errors that I can see.

Any solutions?

olehkuznetsov commented 5 years ago

Just checked SmokeTest 'User Info->New Auth Code' and it works fine. Can you check if it works in SmokeTest for you, please?

olehkuznetsov commented 5 years ago

Check if you have set 'Google Play Games->Setup->Android Setup->Web App Client ID->Client ID' field.

Fiercy commented 5 years ago

Yes, the web app client ID is there I copied the way its done in SmokeTest Same function call to just get the AuthToken string and nothing happens! My AuthToken is still the same as the one I was getting before.

I tired using same key same project name and same settings on SmokeTest but it goes out with error 8 maybe related so SHA-1 or what ever not letting me in.

How can I force the plugin to reset the token I don't get why it gets it just fine when I just open app but if i come from minimize I can't get another token at all.

Fiercy commented 5 years ago

So I did lots of tinkering and I've come to the conclusion that in your example if works because its tied to the press of the button.

But if you do it as a function call (nothing happens)

When I made this couroutine and inserted a delay in there then it works. Is this something that can be fixed by the devs?

olehkuznetsov commented 5 years ago

So, may be your caller/callback is dying before callback is called?

olehkuznetsov commented 5 years ago

Should be fixed in v0.9.54