I can't post a score to my leaderboard on Google Play Game Services

Hello, 

I am trying to post a score to a leaderboard I have set in GPGS.

I can log in successfully to GPGS and gameNetwork.show( “leaderboards” )

shows the list of leaderboards I have created in the dev console. 

I am using the following template to post the highscore:

local function requestCallback( event ) if ( event.type == "setHighScore" ) then --high score has been set end end gameNetwork.request( "setHighScore", { localPlayerScore = { category="Cy\_sd893DEewf3", value=25 }, listener = requestCallback } )

replacing the category with the leaderboard id from the dev console. And placing an extra native.showAlert line in the listener function so I can see if the request has been made. Which shows every time too. 

I have also double checked that the app id set in build.settings is correct.

I followed the tutorial here

and read lots of threads with similar problems in the corona forums… 

I tried unpublishing the service and republishing it again… 

I tried logging in using different accounts… 

Still my leaderboards are empty. The Players column in the dev console is also blank. So far I have used 3 unique accounts to log in the game… and if I’m not mistaken it should be counted in there right? Do tell me if this assumption is wrong. 

Your help will be very much appreciated. Thanks a lot. 

Yay! 

Thanks to this thread: http://forums.coronalabs.com/topic/50011-resolved-gpgs-gamenetworkinit-does-nothing-with-an-error-google-play-services-resources-not-found/

By applying the step by step solution posted by Mr. Christopher Bishop

and looking very thoroughly at adb logcat I was able to pinpoint the problem

  1. I didn’t copy the licence to my config.lua

  2. There’s a problem in my code wherein the “/r” character is getting saved together with the leaderboard_id variable I am using. *facepalm* 

Anyway, some people might find this tidbit useful. 

We can run adb logcat on bluestacks by following this: http://www.jpct.net/forum2/index.php?topic=2665.0

I currently don’t have a device that can run corona built app so I’m testing on bluestacks… 

Yay! 

Thanks to this thread: http://forums.coronalabs.com/topic/50011-resolved-gpgs-gamenetworkinit-does-nothing-with-an-error-google-play-services-resources-not-found/

By applying the step by step solution posted by Mr. Christopher Bishop

and looking very thoroughly at adb logcat I was able to pinpoint the problem

  1. I didn’t copy the licence to my config.lua

  2. There’s a problem in my code wherein the “/r” character is getting saved together with the leaderboard_id variable I am using. *facepalm* 

Anyway, some people might find this tidbit useful. 

We can run adb logcat on bluestacks by following this: http://www.jpct.net/forum2/index.php?topic=2665.0

I currently don’t have a device that can run corona built app so I’m testing on bluestacks…