Forbid mobile device to fall asleep

Is it possible to forbid a mobile device fall asleep when a certain application is on?

I found out that such behavior control parametr FLAG_KEEP_SCREEN_ON in Android Stidio. How can I use it in Service Studio?

Hi,

You could try to use the following plugin

https://www.outsystems.com/forge/component-overview/1727/backgroundmode-plugin

Regards,

Daniel

Hi. Thanx for replay. I mean that when some app is on foreground of the screen it prevent of sleeping mobile device, like when youtube app is playing some video the device is still on.

Vyacheslav Buzivskyy wrote:

Hi. Thanx for replay. I mean that when some app is on foreground of the screen it prevent of sleeping mobile device, like when youtube app is playing some video the device is still on.

What you mean and what you wrote didn't match.
Unfortunately I don't know if at all this is possible, or how to achieve what you want with an OutSystems mobile app.

Regards,

Daniel

Solution

The solution is Insomnia Plugin

Solution

Nice you found the solution yourself.