L
L
Loinon2019-08-04 00:41:58
Unity
Loinon, 2019-08-04 00:41:58

Why can't I log in to Google Play through the Google Play Games for Unity plugin?

Unable to authorize when requested, the callback always returns false when logging in.
Here is the method that performs initialization and authorization

private void StartAuthenticateInGooglePlay()
{
  FirebaseAuth auth = FirebaseAuth.DefaultInstance;
  Debug.Log("\nAuthorizing...");
  PlayGamesClientConfiguration config = new PlayGamesClientConfiguration.Builder()
    .RequestServerAuthCode(false)
    .Build();
  PlayGamesPlatform.InitializeInstance(config);
  PlayGamesPlatform.Activate();
  PlayGamesPlatform.DebugLogEnabled = true;
  Social.localUser.Authenticate(AuthInBackend);
}

In adb logcat it gives out:
GTRvLsd49vM.jpg
Please tell me what could be the problem?
apk file is signed with the correct key (another apk built without using the plugin and the unit is authorized with the same digital signature).
I have been added to the Google Play Console as a tester, as in Google Play Services. The plugin version is the latest at the moment. Plugin installation was successful. The authorization window appears and disappears almost immediately.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Ark Tarusov, 2019-08-18
@kreo_OL

Unfortunately this is a common problem. Sometimes it is treated simply by rebuilding.
It is also worth going over all the points again.
1. Play games are installed on the device - although if they are not there, instead of the authorization window, a window will appear asking you to install them.
2. Everything is signed with the correct keys
3. All necessary resources are configured in the unit
4. Services are created and published in the console
5. Well, actually, if you log in from a tester account, then the tester must definitely be added to a specific build or to the application as a whole. Please note that application and service testers are different groups of testers, and they are assigned on different pages of the console.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question