Hello, i’ve been trying to deal with a very strange issue for a day. My app cant login to Google Play Game Services and i dont understand why. Using Unity 2021.2.0f1 Here is the logcat
Checked SHA1 fingerprint. Im building directly to android device with usb thats why im using “Upload certificate SHA-1” but i also tried to open internal test and used “App signing certificate SHA-1” and download game from store as a tester still not working.
Checked tester email
Saved Games are enabled
and lastly tried to build game with Unity 2020.3.0f1 same way, same code and same “Upload certificate SHA-1” and its worked. If you have an idea about this i would be very grateful if you could help.
Hello. Same error. I can’t understand problem. My old version in production (Google Play) work fine. It’s on new plugin version (updated from old 2017 unity version and 0.9.xx plugin)
We’ve been able to circumvent the issue by reverting back to version 0.10.11 of the GPGS plugin. For whatever reason, version 0.10.13 errors out with the same “Authentication failed - developer error”-message even though all our OAuth keys are unchanged and are still correctly configured. Hope this helps.
Same here during a new integration with Unity 2019.4.30f1 and GPG plugin version 0.10.13 and 0.10.14 (available but not tagged as release).
As a side note, be sure to check the login flow in the documentation/readme as it was changed in the 0.10.13 and it does not use the Unity Social interface any more.
I’ll try downgrading, our other game was updated last year from 0.10.09 to 0.10.12 and everything went smoothly.
I’ve managed to fix this, plugin version 0.10.14 is needed (just tagged yesterday as new release), here’s more details on what I did:
Updated to plugin version 0.10.14
Double checked the exact position of project.properties which is “Assets\Plugins\Android\GooglePlayGamesManifest.androidlib”.
Manually updated the POM ( “Assets\GooglePlayGames\Editor\m2repository\com\google\games\gpgs-plugin-support\0.10.14\gpgs-plugin-support-0.10.14.pom”) to reflect latest dependencies changes in the project.
Manually fixed the generated “Assets\GooglePlayGames\Editor\GooglePlayGamesPlugin_v0.10.14.txt” using the correct path for project.properties
Created a new build checking for app_id in the Manifest to be sure about that as it’s mandatory for a correct implementation.
this worked for me but it is spamming AndroidJavaException: java.lang.NullPointerException: GoogleSignInAccount must not be null
however, the spamming did stopped and stated Authentication Succeeded
2022/11/26 16:19:50.119 4298 4298 Debug SignInRequest Signed-in with the last signed-in account.
2022/11/26 16:19:50.120 4298 4320 Error SignInRequest Setting result error status code to: 10
2022/11/26 16:19:50.120 4298 4320 Info Unity Returning an error code.
2022/11/26 16:19:50.120 4298 4320 Info Unity (Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 39)
2022/11/26 16:19:50.120 4298 4320 Info Unity
2022/11/26 16:19:50.123 4298 4298 Error Unity AndroidJavaException: java.lang.NullPointerException: GoogleSignInAccount must not be null
2022/11/26 16:19:50.123 4298 4298 Error Unity java.lang.NullPointerException: GoogleSignInAccount must not be null
2022/11/26 16:19:50.123 4298 4298 Error Unity at com.google.android.gms.common.internal.r.a(Unknown Source:9)
2022/11/26 16:19:50.123 4298 4298 Error Unity at com.google.android.gms.games.Games.getGamesClient(Unknown Source:2)
2022/11/26 16:19:50.123 4298 4298 Error Unity at com.unity3d.player.ReflectionHelper.nativeProxyInvoke(Native Method)
2022/11/26 16:19:50.123 4298 4298 Error Unity at com.unity3d.player.ReflectionHelper.a(Unknown Source:0)
2022/11/26 16:19:50.123 4298 4298 Error Unity at com.unity3d.player.ReflectionHelper$1.invoke(Unknown Source:31)
2022/11/26 16:19:50.123 4298 4298 Error Unity at java.lang.reflect.Proxy.invoke(Proxy.java:1006)
2022/11/26 16:19:50.123 4298 4298 Error Unity at $Proxy12.onResult(Unknown Source)
2022/11/26 16:19:50.123 4298 4298 Error Unity at com.google.games.bridge.TokenPendingResult.setStatus(Unknown Source:24)
2022/11/26 16:19:50.123 4298 4298 Error Unity at com.google.games.bridge.SignInRequest.setSuccess(Unknown Source:13)
2022/11/26 16:19:50.123 4298 4298 Error Unity at com.google.games.bridge.SignInRequest.access$000(Unknown Source:0)
2022/11/26 16:19:50.123 4298 4298 Error Unity at com.google.games.bridge.SignInRequest$1.onComplete(Unknown Source:17)
2022/11/26 16:19:50.123 4298 4298 Error Unity at com.google.android.gms.tasks.zzj.run(Unknown Source:23)
2022/11/26 16:19:50.123 4298 4298 Error Unity at android.os.Handler.handleCallback(Handler.java:938)
2022/11/26 16:19:50.123 4298 4298 Error Unity at android.os.Handler.dis
2022/11/26 16:19:50.124 4298 4320 Info Unity [Play Games Plugin 0.10.14] 11/26/22 16:19:50 -05:00 DEBUG: Authentication succeeded
2022/11/26 16:19:50.124 4298 4320 Info Unity (Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 39)
2022/11/26 16:19:50.124 4298 4320 Info Unity
I used a Coroutine and it shows that it does fail initially when calling PlayGamesPlatform.Instance.Authenticate(); thus it will fail during void Start() ```csharp
**using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SocialPlatforms;
using UnityEngine.UI;
using GooglePlayGames;
using GooglePlayGames.BasicApi;
using GooglePlayGames.BasicApi.SavedGame;