How can I prevent the device from going to sleep while using a filter?

I programmed an effect that launches an animation for 2 minutes (without user interaction during these 2 min): of course most phones go to sleep before the end. I don't see how to avoid this knowing that I can't ask the user to click every 15 sec ...
Asked about 3 months ago by Quentin
0 Votes2 FollowersSeen by 1