Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use case: develop websites with real-time updates on mobile devices wirelessly #8

Open
marcofugaro opened this issue May 15, 2021 · 0 comments

Comments

@marcofugaro
Copy link

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:

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 print this to the console:
)

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, which is native and can of course access the WakeLock API.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant