My leaderboards on android are broken so I keep trying to identify the problem… No matter what I do the callback for gameNetwork.init(“google”) does not work!
I made an empty project and copied this code from coronas site verbatim and am running it on my phone… id expect to see some errors… something! I put a print at the top of initCallback and nothing gets printed…
local gameNetwork = require( "gameNetwork" ) local function initCallback( event ) if not event.isError then native.showAlert( "Success!", "", { "OK" } ) else native.showAlert( "Failed!", event.errorMessage, { "OK" } ) print( "Error Code:", event.errorCode ) end end local function onSystemEvent( event ) if ( event.type == "applicationStart" ) then gameNetwork.init( "google", initCallback ) return true end end Runtime:addEventListener( "system", onSystemEvent )
nothing is happening… no alerts no nothing. what is going on?!
my gamenetwork is not being initialized and when people touch to launch the leaderboard the game crashes.
my code spontaneously stopped working when re-compiling. I think its on coronas side. that google play game services plugin has something wrong with it I’m guessing.
my gamenetwork is not being initialized and when people touch to launch the leaderboard the game crashes.
my code spontaneously stopped working when re-compiling. I think its on coronas side. that google play game services plugin has something wrong with it I’m guessing.