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?!