Re: [screen-wake-lock] Need maximum screen brightness mode (#129)

It might be a very uncommon use case, but we are currently developing a web app allowing for crowd interaction at events like concerts. Everyone visits our web app that simply shows a color, controlled by the light department / event organiser. During the performance, the crowd holds up their phones, which all simultaneously switch colors in sync with the music / event. It could even be possible to display simple patterns using all phones collectively.

Via the fullscreen button the device already switches to fullscreen and requests a wake lock - it would however be great if we could turn it to maximum brightness as well. (I fully agree that it's most sensible to allow devices to set upper limits e.g. in dark environments, even though in our use case it would be best to have the absolute maximum regardless of ambient brightness)

I know this use case is VERY uncommon, just wanted to show that there are probably tons of use cases that we can't predict currently. I would be thrilled to have a solution as simple as the suggested:
navigator.getWakeLock("screen", {brightness: maximise}).then(wakeLock => {
  var request = wakeLock.createRequest();
  setTimeout(() => {
  }, 1000);


GitHub Notification of comment by daniel-fahl
Please view or discuss this issue at using your GitHub account

Sent via github-notify-ml as configured in

Received on Monday, 27 September 2021 14:59:41 UTC