Some iPhone apps, such as those that use tilt but not touch, need their screens to stay active.
This might be a very basic concept to those of us who have had to use it before, however many people are unaware that they can control whether or not their/their users’ iPhone or iPad screens will “dim” or move to standby while their application is open.
This mini tutorial is the result of my checking out my analytics data and finding several Corona SDK users have found Techority while searching for answers, so here it is.
To stop your iPhone screen from dimming while your app is running, use this code;
Your screen will no longer dim. To enable it again, set the above to true.
I know this isn’t wildly exciting but I hope it helps some of you.