Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

gpgs.getServerAuthCode never calsl back for plugin.gpgs.v2
Started by pigscanfly2k Mar 22 2020 11:49 AM

1 reply to this topic
[TOPIC CONTROLS]
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

pigscanfly2k

[GLOBAL: userInfoPane.html]
pigscanfly2k
  • Observer

  • 9 posts
  • Corona SDK

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 ~


[TOPIC: post.html]
#2

pigscanfly2k

[GLOBAL: userInfoPane.html]
pigscanfly2k
  • Observer

  • 9 posts
  • Corona SDK

Just an update... I got the call to start work and now I am getting an errorcode of 10 which is great.

 

This is apparently due to me not registering the SHA-1 auth code properly, I will look into this next.




[topic_controls]
[/topic_controls]