Hi everyone,
I am now attempting to get a backend server setup for a game and I want to ensure I validate logins and server calls properly.
To do this I need to pass the gpgs authcode to my server but I am unable to get the function getServerAuthCode to return any values or perform a callback at all. There is no no failure message or anything it just doesn’t seem to do anything at all.
You can see some of the code below:
function gpgsGetServerAuthCodeListener(event)
infopopup.InfoPopup:create
{
title=“gpgsGetServerAuthCodeListener() callback”,
lines=
{
json.prettify(event)
}
}:display();
end
gpgs.getServerAuthCode(
{
serverId = “XXXXXXX-biglongstring.apps.googleusercontent.com”,
listener = gpgsGetServerAuthCodeListener
}
);
I had a very similar issue previously with gpgs.getAccountName and eventually it just started working despite the fact that I didn’t change anything, although I think it was due to my google play account settings that were modified.
Is there anything I need to know about making this call?
Cheers ~