Hello everyone,
i found a very weird condition…
so in the first, my application is working very well when I’m using Corona SDK v996.
But after I updated my version to v1106, I suddenly found that my “applicationResume” event is not working…
so I decided to make a very simple code, with only 1 file main.lua to make a research…
here is the code
local facebook = require("facebook"); local onSystem = function( event ) print("THIS IS ON SYSTEM, EVENT = " .. event.type); native.showAlert( "THIS IS ON SYSTEM,", "EVENT = " .. event.type, { "OK" }); if event.type == "applicationStart" then elseif event.type == "applicationExit" then elseif event.type == "applicationSuspend" then print("APP SUSPEND") native.showAlert( "THIS IS ON SYSTEM,", "EVENT = SUSPEND", { "OK" }); elseif event.type == "applicationResume" then print("APP RESUME") native.showAlert( "THIS IS ON SYSTEM,", "EVENT = RESUME", { "OK" }); end end Runtime:addEventListener( "system", onSystem )
But the weird thing is, when I comment the Facebook thing,
--local facebook = require("facebook");
everything is working!
Anybody facing the same problem with me? it just me? or the bug from corona v1106??
wish to hear from Corona staff, or someone who faced the same problem before, soon