play-games-plugin-for-unity icon indicating copy to clipboard operation
play-games-plugin-for-unity copied to clipboard

Calling PlayGamesPlatform.Instance.ManuallyAuthenticate does not result in any response.

Open lin49931104 opened this issue 1 year ago • 0 comments

Describe the bug Calling PlayGamesPlatform.Instance.ManuallyAuthenticate does not result in any response and the log shows "Returning an error code."

To Reproduce Steps to reproduce the behavior:

  1. Cancel on automatic login
  2. Call PlayGamesPlatform.Instance.ManuallyAuthenticate

Expected behavior Show login selection screen

Observed behavior Nothing happened

Versions

  • Unity version: 2021.3.18f1
  • Google Play Games Plugin for Unity version: 0.11.01

Additional context My code is copied from Simple and looks like this:

PlayGamesPlatform.Activate(); PlayGamesPlatform.Instance.ManuallyAuthenticate(OnSignInResult);

However, I have already called PlayGamesPlatform.Activate() in the Start() method. After removing the second PlayGamesPlatform.Activate() and running the program, it works fine.

In addition, I did not encounter the same issue when calling PlayGamesPlatform.Activate() repeatedly in version 0.10.14.

lin49931104 avatar Apr 01 '23 08:04 lin49931104