Hi guys,
First attempt at playfab, so please be gentle.
I've been trying to log into playfab using google credentials. Logging in to GPGS is successful, but when I try to GetServerAuthCode() it fails, and returns a null.
Any help would be appreciated. Am ready to shoot myself.
Thanks.
Ps : ConsoleWrite is just a simple function that also writes to an on screen text so i an debug when running on device.
Pps : Also getting an error about delegates not matching the parameters.
public void GoogleLogin() { string serverAuthCode; ConsoleWrite("Attempting to Login to Google"); Social.localUser.Authenticate((bool success) => { if (success) { ConsoleWrite("Authentication Success."); ConsoleWrite("Username : " + Social.localUser.userName + " | ID : " + Social.localUser.id); } else { ConsoleWrite("Authentication Failure."); } }); ConsoleWrite("Attempting to Login to PlayFab using Google Credentials."); PlayGamesPlatform.Instance.GetServerAuthCode((CommonStatusCodes code, string tkn) => { ConsoleWrite("Code : " + code.ToString() + " | Token : " + tkn);serverAuthCode = tkn; }); LoginWithGoogleAccountRequest request = new LoginWithGoogleAccountRequest { TitleId = titleId, ServerAuthCode = serverAuthCode, CreateAccount = true }; PlayFabClientAPI.LoginWithGoogleAccount(request, OnLoginSuccess, OnLoginFailuer); } void OnLoginSuccess() { ConsoleWrite("PlayFab Login With Google - Success."); } void OnLoginFailuer() { ConsoleWrite("PlayFab Login With Google - Failure."); }