Skip to content

Acquire wakelock when showing recipes #2826

@provokateurin

Description

@provokateurin

Is your feature request related to a problem? Please describe.

On my phone I use the cookbook PWA because none of the available Android apps really satisfy me. For most things I'm really happy how it works, the only annoying thing (besides an obvious lack of offline support which I don't really consider in scope for a Nextcloud web app) is the lack of a wakelock when viewing a recipe. I usually put my phone on the table while cooking and have a very low timeout for the screen lock. In my other phone usage this is not a problem and I do it for security/privacy reasons, but while cooking in my own kitchen it is a bit annoying that I constantly need to unlock it.

Describe the solution you'd like

While viewing a recipe the frontend should acquire a screen wake lock with the dedicated API: https://developer.mozilla.org/en-US/docs/Web/API/Screen_Wake_Lock_API


This is probably be really easy to implement, so I might give it a go myself if there is time for it.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions