How to keep screen awake in Cocos Creator?

Hi, i’m dev a game that have an autoplay system, but my game is going to sleep after a while. I’ve read several thread but it’s a long time ago (2012 so so). In the newest cocos creator is there any way to keep screen on ? In multi platform ?

You might want to do that at native level.

For example, for android, you need to add a permission and some native codes too.

A good read: