BUG iPhone goes to sleep even when the App is open

The iPhone was going to sleep when the application is open and there is
no touch sensestivity. FIXED
thank you @bsrao I will make changes to that.