Hey, is your tutorial still working?
I followed it and I am getting
2024/03/20 11:25:38.964 16508 16668 Warn Unity *** [Play Games Plugin 0.11.01] 03/20/24 11:25:38 +02:00 ERROR: Returning an error code.
2024/03/20 11:25:38.964 16508 16668 Warn Unity GooglePlayGames.OurUtils.PlayGamesHelperObject:Update()
2024/03/20 11:25:38.964 16508 16668 Warn Unity
2024/03/20 11:25:38.982 16508 16668 Info Unity status Canceled
2024/03/20 11:25:38.982 16508 16668 Info Unity LoginSystem:ProcessAuthentication(SignInStatus)
2024/03/20 11:25:38.982 16508 16668 Info Unity GooglePlayGames.OurUtils.PlayGamesHelperObject:Update()
this is my code
public void GoogleSignIn()
{
PlayGamesPlatform.Instance.Authenticate(ProcessAuthentication);
}
private void ProcessAuthentication(SignInStatus status)
{
Debug.Log("status " + status);
Loadingbtn.SetActive(true);
UpdateButton();
if (status == SignInStatus.Success)
{
Debug.Log("Google success sign in " + " name :" + PlayGamesPlatform.Instance.GetUserDisplayName());
PlayGamesPlatform.Instance.RequestServerSideAccess(false, code =>
{
LoginWithGooglePlayGamesServicesRequest googlerequset = new LoginWithGooglePlayGamesServicesRequest
{
CreateAccount = true,
ServerAuthCode = code,
TitleId = "",
InfoRequestParameters = new GetPlayerCombinedInfoRequestParams
{
GetPlayerProfile = true,
GetUserVirtualCurrency = true,
GetUserReadOnlyData = true,
UserDataKeys = userDataKeys,
GetUserInventory = true,
GetUserAccountInfo = true,
}
};
Debug.Log("Sign into playfab");
PlayFabClientAPI.LoginWithGooglePlayGamesServices(googlerequset, result => LoginComplete(result, Regex.Replace(PlayGamesPlatform.Instance.GetUserDisplayName(), @"\s", "")), OnPlayfabuthFailed);
});
}
else
{
UpdateButton();
Loadingbtn.SetActive(false);
}
}
and I have added myself as tester and I added the Credentials (OAuth 2.0 Client IDs ) thing as Game server
because on the tutorial you created it as web application and not android is it wrong?
is there something else to do?