Hi there,
I am trying to implement a rather simple piece of code most of which I copied from tutorials.
The init and login procedure is working but the loadLocalPlayerCallback is never called.
Any advice what could be wrong?
Thanks in advance
local gameNetwork = require "gameNetwork" local function loadLocalPlayerCallback(event) text.text = text.text .. "\nlocalPlayer " .. event.data.playerID .. " " .. event.data.alias end local function loginCallback(event) if event == false then else text.text = text.text .. "\nLogged In!" gameNetwork.request( "loadLocalPlayer", { listener=loadLocalPlayerCallback } ) end return true end local function initCallback( event ) if not event.isError then text.text = text.text .. "\nInit!" gameNetwork.request( "login", { userInitiated=false, listener=loginCallback } ) else end return true end ------HANDLE SYSTEM EVENTS------ local function systemEvents( event ) if ( event.type == "applicationStart" ) then if ( system.getInfo("platformName") == "Android" ) then gameNetwork.init( "google", initCallback ) end end return true end Runtime:addEventListener( "system", systemEvents )