My Unity project is getting the error "Authentication Canceled" every time I try to log in on my android device.
When I click the button in my game the "Connecting to Play Games" pop up shows for a moment and then disappears.
I have triple checked my Unity Google Play Games Andorid settings and my Google Add-on settings in my Playfab account. I am set up as a tester in my Google Developer Console and have even made a new Google Play account and added that with the same result.
Is there any way to see in more detail what the error is?
Here is my code:
public Text StatusText; // Start is called before the first frame update void Start() { PlayFabSettings.EnableRealTimeLogging = true; // The following grants profile access to the Google Play Games SDK. // Note: If you also want to capture the player's Google email, be sure to add // .RequestEmail() to the PlayGamesClientConfiguration PlayGamesClientConfiguration config = new PlayGamesClientConfiguration.Builder() .AddOauthScope("profile") .RequestServerAuthCode(false) .Build(); PlayGamesPlatform.InitializeInstance(config); // recommended for debugging: PlayGamesPlatform.DebugLogEnabled = true; // Activate the Google Play Games platform PlayGamesPlatform.Activate(); } public void OnSignInButtonClicked() { Social.localUser.Authenticate((bool success, string error) => { if (success) { StatusText.text = "Google Signed In"; var serverAuthCode = PlayGamesPlatform.Instance.GetServerAuthCode(); Debug.Log("Server Auth Code: " + serverAuthCode); PlayFabClientAPI.LoginWithGoogleAccount(new LoginWithGoogleAccountRequest() { TitleId = PlayFabSettings.TitleId, ServerAuthCode = serverAuthCode, CreateAccount = true }, (result) => { StatusText.text = "Signed In as " + result.PlayFabId; }, OnPlayFabError); } else { StatusText.text = "Google Failed to Authorize your login: " + error; } }); }