playgameservices / play-games-plugin-for-unity

Google Play Games plugin for Unity
Other
3.47k stars 966 forks source link

Is there a separate GPGS login user confirmation button callback? #3194

Open ant5033 opened 2 years ago

ant5033 commented 2 years ago

This form is for reporting Unity Plugin issues only. To report an issue with the Play Games Service (non-SDK related), check Google Play Games Services Support. Once you've read this section and determined that your issue is appropriate for this repository, please delete this section.

Describe the bug A clear and concise description of what the bug is.

To Reproduce Steps to reproduce the behavior:





Expected behavior A clear and concise description of what you expected to happen.

Observed behavior A clear and concise description of what you observed.

Bug Report Capture a bug report and share the Google Drive link. If the bug report contains sensitive information, then make it private and only give access to requests from ...@google.com accounts.

Screenshots If applicable, add screenshots to help explain your problem.

GPGS issue3 GPGS issue GPGS issue2

Versions

Additional context Add any other context about the problem here.

I'm using a server After logging in to the GPGS, I want to create user information by linking with the server that uses the Google account.

After successful GPGS login,

string _IDtoken = PlayGamesPlatform.Instance.GetIdToken();

Use the code above to log in to the server with the corresponding token.

The problem is that we use server login after GPGS login successful callback Code invocation too early.

Is there a separate callback when the user presses the OK button on the screen?

ant5033 commented 2 years ago

If the code on the login approval screen does not match the callback, could you tell me the callback used for that screen?

You can just use delays with Coroutine or Invoke I'm asking this question because I don't think it's a perfect code!

I'm a beginner developer ;)