How to prevent iphone from going to sleep, while a function is being executed in the app

Hi,
I am trying to set local notification(1000+) that is taking too long to execute(kind of freezes the application) and thus eventually makes the phone go to sleep.

Wanted to ask the community, if there is a way to keep the phone from going to sleep.

thx,
Bejoy

insert this code into your main.lua file and be happy.

1
2
--> Disable (turn off) the idle timer
system.setIdleTimer( false );
views:1645 update:2012/1/11 9:01:14
corona forums © 2003-2011