My Goal is to set a function that fires every 30 seconds that emulates a tap on the screen so that the screen stays on. Is this at all possible, or what is the best way to enable this without having to program it natively in Java.
I'll be happy if i can do it via phonegap.
You can disable the Idle Timer if you're in PhoneGap, you'll need to add this to the UIApplication object.
[[UIApplication sharedApplication] setIdleTimerDisabled: YES];