‘applicationStart’ is working, but ‘applicationResume’ doesn’t work, I already set “UIApplicationExitsOnSuspend = false”, also it is strange that it actually works on Corona Simulator, but not work on real device (iPhone5/iOS6).
Here is the code:
local onSystem = function( event )
if event.type == “applicationStart” then
system.cancelNotification()
native.setProperty( “applicationIconBadgeNumber”,0)
elseif event.type == “applicationExit” then
print(“exit”)
elseif event.type == “applicationSuspend” then
print(“suspend”)
elseif event.type == “applicationResume” then
native.showAlert( “Hihi”, “”, { “OK” } )
end
end
– setup a system event listener
Runtime:addEventListener( “system”, onSystem )
Any ideas??
Thanks.