hey everyone, this is the first time we use playfab for our game, we tried to make the game connect to user's google play account, we already follow everything from the tutorial on here
https://api.playfab.com/docs/tutorials/landing-players/sign-in-with-google
the google [play plugin works just fine, i can login with no problem, the problem came after that, it just wont connect to play fab, heres a snippet of the code
public void Login() { Social.localUser.Authenticate((bool success) => { if (success) { /// tried both, wont work //LoginPlayfab(); Invoke("LoginPlayfab", 0.25f); } else { } }); } public void LoginPlayfab() { #if UNITY_ANDROID var serverAuthCode = PlayGamesPlatform.Instance.GetServerAuthCode(); Debug.Log("Server Auth Code: " + serverAuthCode); PlayFabClientAPI.LoginWithGoogleAccount(new LoginWithGoogleAccountRequest() { TitleId = PlayFabSettings.TitleId, ServerAuthCode = serverAuthCode, CreateAccount = true }, (result) => { OnLoginSuccess(result); }, OnLoginFailure); #endif #if UNITY_IOS PlayFabClientAPI.LoginWithGameCenter(new LoginWithGameCenterRequest() { TitleId = PlayFabSettings.TitleId, CreateAccount = true }, (result) => { OnLoginSuccess(result); }, OnLoginFailure); #endif }
and heres the logcat error log
04-03 12:21:19.416 2445 2460 E Unity : SocialManager:OnLoginFailure(PlayFabE rror) 04-03 12:21:19.416 2445 2460 E Unity : PlayFab.Internal.<MakeApiCall>c__Anon Storey3:<>m__0(String) 04-03 12:21:19.416 2445 2460 E Unity : PlayFab.Internal.<PostPlayFabApiCall> c__Iterator1:MoveNext() 04-03 12:21:19.416 2445 2460 E Unity : UnityEngine.SetupCoroutine:InvokeMove Next(IEnumerator, IntPtr) 04-03 12:21:19.416 2445 2460 E Unity : 04-03 12:21:19.416 2445 2460 E Unity : (Filename: ./artifacts/generated/Andr oid/runtime/DebugBindings.gen.cpp Line: 51) 04-03 12:21:19.416 2445 2460 E Unity : 04-03 12:21:19.420 2445 2460 E Unity : /Client/LoginWithGoogleAccount: Inval id input parameters 04-03 12:21:19.420 2445 2460 E Unity : LoginWithGoogleAccountRequest: One of the following properties must be defined: ServerAuthCode, AccessToken, Encrypte dRequest