Please note, acc. to MDN, this is experimental technology and is majorly supported by Chrome & its forks and Samsung browser.
We, as developers, have a responsibility to ensure consistent experiences for our users across all supported platforms (in this case browsers). I feel like usage of this tech would hurt it.
I highly recommend providing a fallback like NoSleep.js at least for iOS & Android.
Please note, acc. to MDN, this is experimental technology and is majorly supported by Chrome & its forks and Samsung browser.
We, as developers, have a responsibility to ensure consistent experiences for our users across all supported platforms (in this case browsers). I feel like usage of this tech would hurt it.
I highly recommend providing a fallback like NoSleep.js at least for iOS & Android.
Reference: dev.to/mikeesto/the-screen-wake-lock-api-51hp
MDN: developer.mozilla.org/en-US/docs/Web/API/WakeLock