Hi, all.
I tried using the simple timer.performWithDelay, but it pauses when the device is suspended with the “blocked screen” mode. Can someone help with that? I want the app user to activate the os.date() timer through a button and I want him to have a button to turn it off as well.
I tried using the following
[lua]
local timer;
function start(e)
timer = os.date("!*t", os.time() + 60);
print(timer);
end
someObject:addEventListener(“tap”, start);
function verifyTimer()
if(timer == 60)then
os.exit();
end
end
Runtime:addEventListener(“enterFrame”, verifyTimer);
[/lua]
It seems “timer” has not a printable value…
Please, help.
Thanks.

haha