playgameservices / play-games-plugin-for-unity

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

Authentication fails after Enabling Saved Games #2879

Open RoninDvlpr opened 4 years ago

RoninDvlpr commented 4 years ago

I've implemented leaderboards in my app, and everything worked fine. But when I've added EnabledSavedGames(), the app stopped to authenticate.

When the app makes an authentication attempt, for a second the screen becomes darker and the system buttons panel appear as if there should be some kind of UI. But a moment later the screen goes back to normal, and authentication fails.

There is an error in logcat concerning GPG, but I didn't manage to figure out what it means:

05-02 03:57:40.327 11160 11160 I Unity : Returning an error code. 05-02 03:57:40.327 11160 11160 I Unity : GooglePlayGames.Android.<>c__DisplayC lass18_0:b__0(Int32)

The only thing i googled is that c__DisplayClass18_0 stands for some anonymous method's name.

Here's what I see in logcat when the app starts:

05-02 03:57:33.461 11160 11182 I Unity   : UnityIAP Version: 1.23.1
05-02 03:57:33.461 11160 11182 I Unity   : UnityEngine.Purchasing.StandardPurcha
singModule:Instance(AppStore)
05-02 03:57:33.461 11160 11182 I Unity   : IAPManager:InitializeIAP()
05-02 03:57:33.461 11160 11182 I Unity   :
05-02 03:57:33.461 11160 11182 I Unity   : (Filename: ./Runtime/Export/Debug/Deb
ug.bindings.h Line: 35)
05-02 03:57:33.461 11160 11182 I Unity   :
05-02 03:57:33.696 11160 11182 I Unity   : SavedGame :Object reference not set t
o an instance of an object.
05-02 03:57:33.696 11160 11182 I Unity   : GooglePlayServicesManager:InitializeP
latform()
05-02 03:57:33.696 11160 11182 I Unity   :
05-02 03:57:33.696 11160 11182 I Unity   : (Filename: ./Runtime/Export/Debug/Deb
ug.bindings.h Line: 35)
05-02 03:57:33.696 11160 11182 I Unity   :
05-02 03:57:33.722 11160 11182 I Unity   : Starting Auth with token client.
05-02 03:57:33.722 11160 11182 I Unity   : GooglePlayGames.Android.AndroidClient
:Authenticate(Boolean, Action`1)
05-02 03:57:33.722 11160 11182 I Unity   : GooglePlayServicesManager:LogIn(SignI
nInteractivity)
05-02 03:57:33.722 11160 11182 I Unity   : GooglePlayServicesManager:InitializeP
latform()
05-02 03:57:33.722 11160 11182 I Unity   :
05-02 03:57:33.722 11160 11182 I Unity   : (Filename: ./Runtime/Export/Debug/Deb
ug.bindings.h Line: 35)
05-02 03:57:33.722 11160 11182 I Unity   :
05-02 03:57:33.730 11160 11182 I Unity   : Log in method executed
05-02 03:57:33.730 11160 11182 I Unity   : GooglePlayServicesManager:InitializeP
latform()
05-02 03:57:33.730 11160 11182 I Unity   :
05-02 03:57:33.730 11160 11182 I Unity   : (Filename: ./Runtime/Export/Debug/Deb
ug.bindings.h Line: 35)
05-02 03:57:33.730 11160 11182 I Unity   :
05-02 03:57:33.738 11160 11182 I Unity   : Initialization method executed
05-02 03:57:33.738 11160 11182 I Unity   : GooglePlayServicesManager:InitializeP
latform()
05-02 03:57:33.738 11160 11182 I Unity   :
05-02 03:57:33.738 11160 11182 I Unity   : (Filename: ./Runtime/Export/Debug/Deb
ug.bindings.h Line: 35)
05-02 03:57:33.738 11160 11182 I Unity   :
05-02 03:57:34.272 11160 11182 W Unity   : !!! [Play Games Plugin DLL] 05/02/20
3:57:34 +03:00 WARNING: Creating new PlayGamesPlatform
05-02 03:57:34.272 11160 11182 W Unity   : System.Action:Invoke()
05-02 03:57:34.272 11160 11182 W Unity   : GooglePlayGames.OurUtils.PlayGamesHel
perObject:Update()
05-02 03:57:34.272 11160 11182 W Unity   :
05-02 03:57:34.272 11160 11182 W Unity   : (Filename: ./Runtime/Export/Debug/Deb
ug.bindings.h Line: 35)
05-02 03:57:34.272 11160 11182 W Unity   :
05-02 03:57:34.289 11160 11182 I Unity   :  [Play Games Plugin DLL] 05/02/20 3:5
7:34 +03:00 DEBUG: Activating PlayGamesPlatform.
05-02 03:57:34.289 11160 11182 I Unity   : System.Action:Invoke()
05-02 03:57:34.289 11160 11182 I Unity   : GooglePlayGames.OurUtils.PlayGamesHel
perObject:Update()
05-02 03:57:34.289 11160 11182 I Unity   :
05-02 03:57:34.289 11160 11182 I Unity   : (Filename: ./Runtime/Export/Debug/Deb
ug.bindings.h Line: 35)
05-02 03:57:34.289 11160 11182 I Unity   :
05-02 03:57:34.306 11160 11182 I Unity   :  [Play Games Plugin DLL] 05/02/20 3:5
7:34 +03:00 DEBUG: PlayGamesPlatform activated: GooglePlayGames.PlayGamesPlatfor
m
05-02 03:57:34.306 11160 11182 I Unity   : System.Action:Invoke()
05-02 03:57:34.306 11160 11182 I Unity   : GooglePlayGames.OurUtils.PlayGamesHel
perObject:Update()
05-02 03:57:34.306 11160 11182 I Unity   :
05-02 03:57:34.306 11160 11182 I Unity   : (Filename: ./Runtime/Export/Debug/Deb
ug.bindings.h Line: 35)
05-02 03:57:34.306 11160 11182 I Unity   :
05-02 03:57:34.318 11160 11182 I Unity   :  [Play Games Plugin DLL] 05/02/20 3:5
7:34 +03:00 DEBUG: Creating platform-specific Play Games client.
05-02 03:57:34.318 11160 11182 I Unity   : System.Action:Invoke()
05-02 03:57:34.318 11160 11182 I Unity   : GooglePlayGames.OurUtils.PlayGamesHel
perObject:Update()
05-02 03:57:34.318 11160 11182 I Unity   :
05-02 03:57:34.318 11160 11182 I Unity   : (Filename: ./Runtime/Export/Debug/Deb
ug.bindings.h Line: 35)
05-02 03:57:34.318 11160 11182 I Unity   :
05-02 03:57:34.486 11160 11182 I Unity   :  [Play Games Plugin DLL] 05/02/20 3:5
7:34 +03:00 DEBUG: Creating Android IPlayGamesClient Client
05-02 03:57:34.486 11160 11182 I Unity   : System.Action:Invoke()
05-02 03:57:34.486 11160 11182 I Unity   : GooglePlayGames.OurUtils.PlayGamesHel
perObject:Update()
05-02 03:57:34.486 11160 11182 I Unity   :
05-02 03:57:34.486 11160 11182 I Unity   : (Filename: ./Runtime/Export/Debug/Deb
ug.bindings.h Line: 35)
05-02 03:57:34.486 11160 11182 I Unity   :
05-02 03:57:34.535 11160 11182 I Unity   : Using configuration builder objects
05-02 03:57:34.535 11160 11182 I Unity   : UnityEngine.Purchasing.StoreCatalogIm
pl:handleCachedCatalog(Action`1)
05-02 03:57:34.535 11160 11182 I Unity   : System.Action`1:Invoke(T)
05-02 03:57:34.535 11160 11182 I Unity   : UnityEngine.Purchasing.<Process>d__4:
MoveNext()
05-02 03:57:34.535 11160 11182 I Unity   : UnityEngine.SetupCoroutine:InvokeMove
Next(IEnumerator, IntPtr)
05-02 03:57:34.535 11160 11182 I Unity   :
05-02 03:57:34.535 11160 11182 I Unity   : (Filename: ./Runtime/Export/Debug/Deb
ug.bindings.h Line: 35)
05-02 03:57:34.535 11160 11182 I Unity   :
05-02 03:57:40.311 11160 11182 I Unity   : Exception of type 'UnityEngine.Purcha
sing.NullReceiptException' was thrown.
05-02 03:57:40.311 11160 11182 I Unity   : IAPManager:CheckNoAdsSubscription()
05-02 03:57:40.311 11160 11182 I Unity   : IAPManager:OnInitialized(IStoreContro
ller, IExtensionProvider)
05-02 03:57:40.311 11160 11182 I Unity   : UnityEngine.Purchasing.PurchasingMana
ger:CheckForInitialization()
05-02 03:57:40.311 11160 11182 I Unity   : UnityEngine.Purchasing.PurchasingMana
ger:OnProductsRetrieved(List`1)
05-02 03:57:40.311 11160 11182 I Unity   : UnityEngine.Purchasing.JSONStore:OnPr
oductsRetrieved(String)
05-02 03:57:40.311 11160 11182 I Unity   : System.Action:Invoke()
05-02 03:57:40.311 11160 11182 I Unity   : UnityEngine.Purchasing.Extension.Unit
yUtil:Update()
05-02 03:57:40.311 11160 11182 I Unity   :
05-02 03:57:40.311 11160 11182 I Unity   : (Filename: ./Runtime/Export/Debug/Deb
ug.bindings.h Line: 35)
05-02 03:57:40.311 11160 11182 I Unity   :
05-02 03:57:40.327 11160 11160 I Unity   : Returning an error code.
05-02 03:57:40.327 11160 11160 I Unity   : GooglePlayGames.Android.<>c__DisplayC
lass18_0:<Authenticate>b__0(Int32)
05-02 03:57:40.327 11160 11160 I Unity   : System.Action`1:Invoke(T)
05-02 03:57:40.327 11160 11160 I Unity   : System.Action`1:Invoke(T)
05-02 03:57:40.327 11160 11160 I Unity   : System.Reflection.MonoMethod:Invoke(O
bject, BindingFlags, Binder, Object[], CultureInfo)
05-02 03:57:40.327 11160 11160 I Unity   : UnityEngine.AndroidJavaProxy:Invoke(S
tring, Object[])
05-02 03:57:40.327 11160 11160 I Unity   : UnityEngine._AndroidJNIHelper:InvokeJ
avaProxyMethod(AndroidJavaProxy, IntPtr, IntPtr)
05-02 03:57:40.327 11160 11160 I Unity   :
05-02 03:57:40.327 11160 11160 I Unity   : (Filename: ./Runtime/Export/Debug/Deb
ug.bindings.h Line: 35)
05-02 03:57:40.327 11160 11160 I Unity   :
05-02 03:57:40.342 11160 11182 I Unity   : UnityIAP: Promo interface is availabl
e for 4 items
05-02 03:57:40.342 11160 11182 I Unity   : UnityEngine.Purchasing.Promo:ProvideP
roductsToAds(HashSet`1)
05-02 03:57:40.342 11160 11182 I Unity   : System.Action:Invoke()
05-02 03:57:40.342 11160 11182 I Unity   : UnityEngine.Purchasing.Extension.Unit
yUtil:Update()
05-02 03:57:40.342 11160 11182 I Unity   :
05-02 03:57:40.342 11160 11182 I Unity   : (Filename: ./Runtime/Export/Debug/Deb
ug.bindings.h Line: 35)
05-02 03:57:40.342 11160 11182 I Unity   :
05-02 03:57:40.381 11160 11182 I Unity   : Starting Auth with token client.
05-02 03:57:40.381 11160 11182 I Unity   : GooglePlayGames.Android.AndroidClient
:Authenticate(Boolean, Action`1)
05-02 03:57:40.381 11160 11182 I Unity   : System.Action`1:Invoke(T)
05-02 03:57:40.381 11160 11182 I Unity   : System.Action:Invoke()
05-02 03:57:40.381 11160 11182 I Unity   : GooglePlayGames.OurUtils.PlayGamesHel
perObject:Update()
05-02 03:57:40.381 11160 11182 I Unity   :
05-02 03:57:40.381 11160 11182 I Unity   : (Filename: ./Runtime/Export/Debug/Deb
ug.bindings.h Line: 35)
05-02 03:57:40.381 11160 11182 I Unity   :
05-02 03:57:40.399 11160 11182 I Unity   :  [Play Games Plugin DLL] 05/02/20 3:5
7:40 +03:00 DEBUG: Invoking user callback on game thread
05-02 03:57:40.399 11160 11182 I Unity   : System.Action:Invoke()
05-02 03:57:40.399 11160 11182 I Unity   : GooglePlayGames.OurUtils.PlayGamesHel
perObject:Update()
05-02 03:57:40.399 11160 11182 I Unity   :
05-02 03:57:40.399 11160 11182 I Unity   : (Filename: ./Runtime/Export/Debug/Deb
ug.bindings.h Line: 35)
05-02 03:57:40.399 11160 11182 I Unity   :
05-02 03:57:49.567 11160 11160 I Unity   : Returning an error code.
05-02 03:57:49.567 11160 11160 I Unity   : GooglePlayGames.Android.<>c__DisplayC
lass18_0:<Authenticate>b__0(Int32)
05-02 03:57:49.567 11160 11160 I Unity   : System.Action`1:Invoke(T)
05-02 03:57:49.567 11160 11160 I Unity   : System.Action`1:Invoke(T)
05-02 03:57:49.567 11160 11160 I Unity   : System.Reflection.MonoMethod:Invoke(O
bject, BindingFlags, Binder, Object[], CultureInfo)
05-02 03:57:49.567 11160 11160 I Unity   : UnityEngine.AndroidJavaProxy:Invoke(S
tring, Object[])
05-02 03:57:49.567 11160 11160 I Unity   : UnityEngine._AndroidJNIHelper:InvokeJ
avaProxyMethod(AndroidJavaProxy, IntPtr, IntPtr)
05-02 03:57:49.567 11160 11160 I Unity   :
05-02 03:57:49.567 11160 11160 I Unity   : (Filename: ./Runtime/Export/Debug/Deb
ug.bindings.h Line: 35)
05-02 03:57:49.567 11160 11160 I Unity   :
05-02 03:57:50.159 11160 11182 I Unity   : Sign in status is Canceled
05-02 03:57:50.159 11160 11182 I Unity   : GooglePlayServicesManager:SignInResul
tsHandler(SignInStatus)
05-02 03:57:50.159 11160 11182 I Unity   : System.Action`1:Invoke(T)
05-02 03:57:50.159 11160 11182 I Unity   : System.Action`1:Invoke(T)
05-02 03:57:50.159 11160 11182 I Unity   : System.Action:Invoke()
05-02 03:57:50.159 11160 11182 I Unity   : GooglePlayGames.OurUtils.PlayGamesHel
perObject:Update()
05-02 03:57:50.159 11160 11182 I Unity   :
05-02 03:57:50.159 11160 11182 I Unity   : (Filename: ./Runtime/Export/Debug/Deb
ug.bindings.h Line: 35)
05-02 03:57:50.159 11160 11182 I Unity   :
05-02 03:57:50.340 11160 11182 I Unity   :  [Play Games Plugin DLL] 05/02/20 3:5
7:50 +03:00 DEBUG: Invoking user callback on game thread
05-02 03:57:50.340 11160 11182 I Unity   : System.Action:Invoke()
05-02 03:57:50.340 11160 11182 I Unity   : GooglePlayGames.OurUtils.PlayGamesHel
perObject:Update()
05-02 03:57:50.340 11160 11182 I Unity   :
05-02 03:57:50.340 11160 11182 I Unity   : (Filename: ./Runtime/Export/Debug/Deb
ug.bindings.h Line: 35)
05-02 03:57:50.340 11160 11182 I Unity   :
05-02 03:57:50.356 11160 11182 I Unity   :  [Play Games Plugin DLL] 05/02/20 3:5
7:50 +03:00 DEBUG: Cancelled, saving this to a shared pref
05-02 03:57:50.356 11160 11182 I Unity   : System.Action:Invoke()
05-02 03:57:50.356 11160 11182 I Unity   : GooglePlayGames.OurUtils.PlayGamesHel
perObject:Update()
05-02 03:57:50.356 11160 11182 I Unity   :
05-02 03:57:50.356 11160 11182 I Unity   : (Filename: ./Runtime/Export/Debug/Deb
ug.bindings.h Line: 35)
05-02 03:57:50.356 11160 11182 I Unity   :

Logcat output when I'm calling the login method manually within the app:

05-02 03:58:08.077 11160 11182 I Unity   : Starting Auth with token client.
05-02 03:58:08.077 11160 11182 I Unity   : GooglePlayGames.Android.AndroidClient
:Authenticate(Boolean, Action`1)
05-02 03:58:08.077 11160 11182 I Unity   : GooglePlayServicesManager:LogIn(SignI
nInteractivity)
05-02 03:58:08.077 11160 11182 I Unity   : UnityEngine.Events.UnityAction:Invoke
()
05-02 03:58:08.077 11160 11182 I Unity   : UnityEngine.Events.UnityEvent:Invoke(
)
05-02 03:58:08.077 11160 11182 I Unity   : UnityEngine.EventSystems.EventFunctio
n`1:Invoke(T1, BaseEventData)
05-02 03:58:08.077 11160 11182 I Unity   : UnityEngine.EventSystems.ExecuteEvent
s:Execute(GameObject, BaseEventData, EventFunction`1)
05-02 03:58:08.077 11160 11182 I Unity   : UnityEngine.EventSystems.StandaloneIn
putModule:ProcessTouchPress(PointerEventData, Boolean, Boolean)
05-02 03:58:08.077 11160 11182 I Unity   : UnityEngine.EventSystems.StandaloneIn
putModule:ProcessTouchEvents()
05-02 03:58:08.077 11160 11182 I Unity   : UnityEngine.EventSystems.StandaloneIn
putModule:Process()
05-02 03:58:08.077 11160 11182 I Unity   :
05-02 03:58:08.077 11160 11182 I Unity   : (Filename: ./Runtime/Export/Debug/Deb
ug.bindings.h Line: 35)
05-02 03:58:08.077 11160 11182 I Unity   :
05-02 03:58:08.111 11160 11182 I Unity   : Log in method executed
05-02 03:58:08.111 11160 11182 I Unity   : UnityEngine.Events.UnityAction:Invoke
()
05-02 03:58:08.111 11160 11182 I Unity   : UnityEngine.Events.UnityEvent:Invoke(
)
05-02 03:58:08.111 11160 11182 I Unity   : UnityEngine.EventSystems.EventFunctio
n`1:Invoke(T1, BaseEventData)
05-02 03:58:08.111 11160 11182 I Unity   : UnityEngine.EventSystems.ExecuteEvent
s:Execute(GameObject, BaseEventData, EventFunction`1)
05-02 03:58:08.111 11160 11182 I Unity   : UnityEngine.EventSystems.StandaloneIn
putModule:ProcessTouchPress(PointerEventData, Boolean, Boolean)
05-02 03:58:08.111 11160 11182 I Unity   : UnityEngine.EventSystems.StandaloneIn
putModule:ProcessTouchEvents()
05-02 03:58:08.111 11160 11182 I Unity   : UnityEngine.EventSystems.StandaloneIn
putModule:Process()
05-02 03:58:08.111 11160 11182 I Unity   :
05-02 03:58:08.111 11160 11182 I Unity   : (Filename: ./Runtime/Export/Debug/Deb
ug.bindings.h Line: 35)
05-02 03:58:08.111 11160 11182 I Unity   :
05-02 03:58:12.175 11160 11160 I Unity   : Returning an error code.
05-02 03:58:12.175 11160 11160 I Unity   : GooglePlayGames.Android.<>c__DisplayC
lass18_0:<Authenticate>b__0(Int32)
05-02 03:58:12.175 11160 11160 I Unity   : System.Action`1:Invoke(T)
05-02 03:58:12.175 11160 11160 I Unity   : System.Action`1:Invoke(T)
05-02 03:58:12.175 11160 11160 I Unity   : System.Reflection.MonoMethod:Invoke(O
bject, BindingFlags, Binder, Object[], CultureInfo)
05-02 03:58:12.175 11160 11160 I Unity   : UnityEngine.AndroidJavaProxy:Invoke(S
tring, Object[])
05-02 03:58:12.175 11160 11160 I Unity   : UnityEngine._AndroidJNIHelper:InvokeJ
avaProxyMethod(AndroidJavaProxy, IntPtr, IntPtr)
05-02 03:58:12.175 11160 11160 I Unity   :
05-02 03:58:12.175 11160 11160 I Unity   : (Filename: ./Runtime/Export/Debug/Deb
ug.bindings.h Line: 35)
05-02 03:58:12.175 11160 11160 I Unity   :
05-02 03:58:12.350 11160 11182 I Unity   : Sign in status is Canceled
05-02 03:58:12.350 11160 11182 I Unity   : GooglePlayServicesManager:SignInResul
tsHandler(SignInStatus)
05-02 03:58:12.350 11160 11182 I Unity   : System.Action`1:Invoke(T)
05-02 03:58:12.350 11160 11182 I Unity   : System.Action`1:Invoke(T)
05-02 03:58:12.350 11160 11182 I Unity   : System.Action:Invoke()
05-02 03:58:12.350 11160 11182 I Unity   : GooglePlayGames.OurUtils.PlayGamesHel
perObject:Update()
05-02 03:58:12.350 11160 11182 I Unity   :
05-02 03:58:12.350 11160 11182 I Unity   : (Filename: ./Runtime/Export/Debug/Deb
ug.bindings.h Line: 35)
05-02 03:58:12.350 11160 11182 I Unity   :
05-02 03:58:12.371 11160 11182 I Unity   :  [Play Games Plugin DLL] 05/02/20 3:5
8:12 +03:00 DEBUG: Invoking user callback on game thread
05-02 03:58:12.371 11160 11182 I Unity   : System.Action:Invoke()
05-02 03:58:12.371 11160 11182 I Unity   : GooglePlayGames.OurUtils.PlayGamesHel
perObject:Update()
05-02 03:58:12.371 11160 11182 I Unity   :
05-02 03:58:12.371 11160 11182 I Unity   : (Filename: ./Runtime/Export/Debug/Deb
ug.bindings.h Line: 35)
05-02 03:58:12.371 11160 11182 I Unity   :

Here is my authentication code:

public SignInStatus signInStatus = SignInStatus.NotAuthenticated;

    void Start()
    {
        InitializePlatform();
    }

    void InitializePlatform()
    {
        PlayGamesClientConfiguration config = new PlayGamesClientConfiguration.Builder().EnableSavedGames().Build();

        PlayGamesPlatform.InitializeInstance(config);
        PlayGamesPlatform.DebugLogEnabled = true;
        PlayGamesPlatform.Activate();

        try
        {
            Debug.Log("Saved game client " + PlayGamesPlatform.Instance.SavedGame);
        }
        catch (Exception exception)
        {
            Debug.Log("SavedGame :" + exception.Message);
        }

        LogIn(SignInInteractivity.CanPromptOnce);

        Debug.Log("Initialization method executed");
    }

    void LogIn(SignInInteractivity prompt)
    {
        PlayGamesPlatform.Instance.Authenticate(prompt, SignInResultsHandler);
        Debug.Log("Log in method executed");
    }

    void SignInResultsHandler(SignInStatus status)
    {
        Debug.Log("Sign in status is " + status);
        signInStatus = status;
        if (signInStatus == SignInStatus.Success)
        {
            Debug.Log("Sign in handler started to call methods");
            SetPlayerBestScore();
            Debug.Log("SetPlayerBestScore called");
            OpenCloudSave();
            Debug.Log("OpenCloudSave called");
        }
    }

Any help is highly appreciated

hjj96 commented 4 years ago

.

RoninDvlpr commented 4 years ago

Deleted Play Games data for the game on my device (as mentioned here https://github.com/playgameservices/play-games-plugin-for-unity/issues/2883) - error still happens

RoninDvlpr commented 4 years ago

Added SHA-1 key from developer console to google api OAuth 2.0 credentials list (as metioned here https://github.com/playgameservices/play-games-plugin-for-unity/issues/2878) - problem persists

RoninDvlpr commented 4 years ago

2 months passed since I've submitted the OAuth consent screen for review, but it hasn't been approved yet. Could this be the reason for the error?

RoninDvlpr commented 4 years ago

Upgrading to 10.09 didn't help to solve or clarify the problem either

RoninDvlpr commented 4 years ago

Saved Games are enabled in the game services console

RoninDvlpr commented 4 years ago

Account I'm using to test the app is added as both play services testers and developer console tester (under the settings tab)

RoninDvlpr commented 4 years ago

After removing SavedGames() authentication began to work again

wildanlsfs commented 4 years ago

After removing SavedGames() authentication began to work again

is the Achievement got saved ? or its resetting every day? can you tell me how to save it, coz i have a problem about my achievement, it's resetting everyday

RiccardoCafa commented 4 years ago

I'm getting the same problem. Followed this workaround from this issue, but I can't make the same steps. Seems like it changes quite a bit on this G Suite Marketplace SDK. Anything that it could be done? I've checked all the known authentication issues, checked if saved game is on. The app works without "EnableSavedGames()" in config builder.

RoninDvlpr commented 3 years ago

After removing SavedGames() authentication began to work again

is the Achievement got saved ? or its resetting every day? can you tell me how to save it, coz i have a problem about my achievement, it's resetting everyday

Sry, i haven't implemented achiements in that project

RoninDvlpr commented 3 years ago

I'm getting the same problem. Followed this workaround from this issue, but I can't make the same steps. Seems like it changes quite a bit on this G Suite Marketplace SDK. Anything that it could be done? I've checked all the known authentication issues, checked if saved game is on. The app works without "EnableSavedGames()" in config builder.

I've abandoned the cloud save on that project. The only thing i can suggest is to doublecheck that you are using an apropriate key - publishing or development one, depending on what you are trying to achieve.

cometa93 commented 3 years ago

Hello guys, did you finally were able to make it work? I'm stuck at this for a while as well... players getting angrier and angrier.

RiccardoCafa commented 3 years ago

Hello @cometa93

Yes, just configuring OAuth credentials on google console made it work, you must use SHA-1 key...

But I strongly recommend you to use another data saving service, cause I think they'll remove this system later on and it's not scalable.

You could also try this Workaround

This one helped me too Google Play Services not working?