Hi so I am trying to add GPGS Leaderboards to my game. I already have the licensing and and app ID in the build.settings and config.lua.
I am trying to login using this code
local function gpgsInitListener( event ) if not event.isError then if ( event.name == "login" ) then -- Successful login event print( json.prettify(event) ) gpgs.leaderboards.show( "CgkI5vqAkuMSEAIQAQ" ) end end end //inside of my scene create function gpgs.login( { userInitiated=true, listener=gpgsInitListener } )
but it does not successfully login so the leaderboard does not show. I have also tried settting up a button to show the leaderboard but that doesnt work either even if the function is called.
When I used ADB everytime i pressed the button the output would show “not logged in”.
I also read through the debug and saw that it said something about the build id or api key not being right, or the leaderboard isnt live yet. I waited a few days to make sure the leaderboard is live and I set my api key SHA-1 to the SHA-1 i get from my keystore I use to sign with corona. I dont know what else to try please help.