I am having trouble getting GameSparks setup to accept my successful access token obtained by logging into google+. I run the code below and get a failure:
void GooglePlayLogin()
{
Destroy(_loginSelect);
PlayGamesPlatform.Activate();
Social.localUser.Authenticate((bool success) => {
if (success)
{
BeginGame(1);
}
else
{
BeginGame(0);
}
});
GoogleGameSparksLogin();
}
void GoogleGameSparksLogin()
{
//We set the access token to the newly added built in funtion in Google Play Games to get our token
new GooglePlusConnectRequest().SetAccessToken(PlayGamesPlatform.Instance.GetAccessToken()).Send((googleAuthResponse) =>
{
if (googleAuthResponse.HasErrors)
{
Debug.Log("Something failed with connecting with google+");
ShowWelcomePanel(3);
}
else
{
Debug.Log("Successfully logged into google+");
ShowWelcomePanel(4);
}
});
}
I cannot get into debug and look at the response because the GooglePlusConnectRequest only works while on Android device.