No Sleeping... screensaver

when I do not touch the screen after 30 seconds my phone falls into energy savings and stops my application.
I don’t want to change the screensaver time.

I have read that if we send a message every 10 seconds the phone does not fall into screensaver mode. but it does not work.

Here is my code.

what should I do

Thank younosleep

The best way I have found to do this is to use:

This block:

From this extension:

1 Like