Added setKeepScreenOn function in both platforms.