Keep Screen On

Control screen display, brightness, full screen on Android

📘

Keep the device screen on all the time for many purposes such as a in-vehicle display app, museum kiosk app, trade show demo, etc. In addition to an app configuration which will be enabled at all times this setting can also be set and cleared via the JavaScript Bridge.

To set this mode add an appConfig parameter general.keepScreenOn: true. To set while the app is running use the GoNative JavaScript Bridge command.

{
  "general":{
    "keepScreenOn": true
  }
}

↔️GoNative JavaScript Bridge

To enable Keep Screen On:

gonative.screen.keepScreenOn();

To disable Keep Screen On:

gonative.screen.keepScreenNormal();