Hey guys, I was having the problem where It seemed like the service was loading but was not, and was not showing leaderboards when i clicked on my button. My problem was that I needed to change my keystore key from debug to my publishing key. hope that helps!
I am also facing same issue as “Schwab”
“I have attached the login function to a button and when I tap on the button, the Google Play prompt appears and it has my app information along with “Connecting to…”. After a few seconds, the loading disappears but I do not get the “Welcome xxx” that I would normally get from other game using GPGS after successfully logged in.”
As well ,I checked that I am getting “Success” alert from following code:-
local function initCallback( event )
if not event.isError then
native.showAlert( “Success!”, “”, { “OK” } )
else
native.showAlert( “Failed!”,event.errorCode…" =errormsg= "…event.errorMessage, { “OK” } )
end
print(“calling initcallback”)
end
gameNetwork.init(“google”, initCallback )
But, I am not getting any responce (initCallback) from following code :-
local function submitScoreListener(lVal)
gameNetwork.request(“setHighScore”,
{
localPlayerScore =
{
category = GameServices.HIGH_SCORE, – Id of the leaderboard to submit the score into
value = lVal – The score to submit
},
listener = initCallback
})
end
I checked many things :-
-
keystore is correct
-
bundle id is correct
-
build is published as alpha
But, surprising thing is that , same code is working fine with one of my friend device(LG nexus 4) but not working with other devices.
Thanks in Advance.
I am also facing same issue as “Schwab”
“I have attached the login function to a button and when I tap on the button, the Google Play prompt appears and it has my app information along with “Connecting to…”. After a few seconds, the loading disappears but I do not get the “Welcome xxx” that I would normally get from other game using GPGS after successfully logged in.”
As well ,I checked that I am getting “Success” alert from following code:-
local function initCallback( event )
if not event.isError then
native.showAlert( “Success!”, “”, { “OK” } )
else
native.showAlert( “Failed!”,event.errorCode…" =errormsg= "…event.errorMessage, { “OK” } )
end
print(“calling initcallback”)
end
gameNetwork.init(“google”, initCallback )
But, I am not getting any responce (initCallback) from following code :-
local function submitScoreListener(lVal)
gameNetwork.request(“setHighScore”,
{
localPlayerScore =
{
category = GameServices.HIGH_SCORE, – Id of the leaderboard to submit the score into
value = lVal – The score to submit
},
listener = initCallback
})
end
I checked many things :-
-
keystore is correct
-
bundle id is correct
-
build is published as alpha
But, surprising thing is that , same code is working fine with one of my friend device(LG nexus 4) but not working with other devices.
Thanks in Advance.