W3C home > Mailing lists > Public > public-device-apis-log@w3.org > May 2021

[system-wake-lock] Use case: develop websites with real-time updates on mobile devices wirelessly (#8)

From: Marco Fugaro via GitHub <sysbot+gh@w3.org>
Date: Sat, 15 May 2021 18:04:50 +0000
To: public-device-apis-log@w3.org
Message-ID: <issues.opened-892506056-1621101888-sysbot+gh@w3.org>
marcofugaro has just created a new issue for https://github.com/w3c/system-wake-lock:

== Use case: develop websites with real-time updates on mobile devices wirelessly ==
Let's say you're a website developer and you are developing a website both for desktop and mobile, and you're previewing the website live on both your laptop and your phone.

Your setup looks like this:

<img width="400" src="https://www.lo-smart-phone.it/wp-content/uploads/2017/05/Supporto-Telefono-Lamicall-Dock-iPhone-Supporto-Smartphone-Per-iPhone-7-6-6s-plus-4-4s-5-5s-se-HUAWEI-Samsung-Note-4-Note-5-Note-6-S3-S4-S5-S6-S7-Accessori-Scrivania-Altri-Smartphone-Nero-0-5.jpg" />

Your phone is not attached with a cord to the laptop, rather you access the local website link through a local network URL. 
(This is very common, tools like [create-react-app](https://github.com/facebook/create-react-app) print this to the console:
<img width="300" src="https://user-images.githubusercontent.com/7217420/118373490-6995ce00-b5b7-11eb-82ea-1c4f6ffb0160.png" />)

You leave your phone on your stand while you write code, the auto-refresh feature will take care of updating it.

However, after a bit, the screen turns off, and you're forced to go into the settings of the phone to remove the screen turn-off time. This is annoying since after you're done, you probably will forget to change the setting back and your phone will not go to sleep by itself.

#### This would be a really useful job for this API.

---------------

[Figma users can already do this thanks to the figma app](https://help.figma.com/hc/en-us/articles/360039829534-Preview-designs-and-prototypes-with-Figma-Mirror-app), which is native and can of course access the WakeLock API.

<img width="400" src="https://miro.medium.com/max/5216/1*wCjqZggpnn7NkGoiEg-TIw.png" />


Please view or discuss this issue at https://github.com/w3c/system-wake-lock/issues/8 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Saturday, 15 May 2021 18:04:54 UTC

This archive was generated by hypermail 2.4.0 : Saturday, 15 May 2021 18:04:55 UTC