How to prevent automatic screen shutdown

Hello guys,

I realized when I turn on my app for about 2 minutes, my smartphone automatically turns off its screen.
Yes, this is due to my smartphone setting which is set to turn off its screen after a certain period of inactivity.

Is there any way to make ionic prevent that behavior? or control that time?

For instance, I want my app to stay turned on for at least 10 minutes straight before turn off screen.
I wonder if there’s any cordova command for that.

Thanks in advance.

(#1 and #3 on Google for “Cordova plugin keep screen on”)

2 Likes