Game Center doesn’t work. In fact, it used to. It used to prompt me to login on application startup, but it doesn’t anymore for some reason. I didn’t change the code at all…
local playerName local function loadLocalPlayerCallback( event ) playerName = event.data.alias end local function gameNetworkInitCallback( event ) gameNetwork.request( "loadLocalPlayer", { listener=loadLocalPlayerCallback } ) return true end local function gpgsInitCallback( event ) gameNetwork.request( "login", { userInitiated=true, listener=gameNetworkInitCallback } ) end -- function to listen for system events local function onSystemEvent( event ) if event.type == "applicationStart" then if ( system.getInfo("platformName") == "Android" ) then gameNetwork.init( "google", gpgsInitCallback ) else gameNetwork.init( "gamecenter", gameNetworkInitCallback ) end return true end end Runtime:addEventListener( "system", onSystemEvent )
Thanks you for your answers 