KeepScreenOnPlugin cordova plugin so you can turn keep screen on Flag on and off from javascript Install Assuming the PhoneGap CLI is installed, from the command line run: cordova plugins add https://github.com/leohenning/KeepScreenOnPlugin