Overview
Screen Wake Lock API provides a way to prevent devices from dimming or locking the screen when the app needs to keep running.
Demo
Usage
You can refer to the code present in /partials/web-apis/screen-wake-lock.html
file and use it accordingly.
Reference