Power management | Aquro Help Center

Intro

Managing the power settings of the device can be useful when running apps that do not require constant interaction and manage how the device should fall into sleep mode.

Via Visual Coding

Device.Power.KeepAwake
Make sure that the device never turns the screen off or goes into sleep mode.

Parameters:
None

Return values:
None

Outlets:
Done - Always called

 

Device.Power.Release
Releases the lock that prevented the device from turning the screen off.

Parameters:
None

Return values:
None

Outlets:
Done - Always called

 

 

Via JavaScript and advanced usage:

You can always use your own custom JavaScript code to manipulate the power management of the device.

For power management Aquro is using the cordova-plugin-powermanagement plugin.

More info: https://github.com/cranberrygame/cordova-plugin-powermanagement