Keep Screen On

📘

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 as default enable within your app configuration on the Interface tab.

On Android the setting can be changed at runtime using the GoNative JavaScript Bridge.

↔️GoNative JavaScript Bridge

To enable Keep Screen On:

gonative.screen.keepScreenOn();

To disable Keep Screen On:

gonative.screen.keepScreenNormal();