Description
There is a wake lock in place currently for displaying a recipe.
This fails short in case one of these events happen:
- The user turns off the display via power button
- The user switches to another tab
- The user switches to another application
In either case, the wake lock is released by the OS (at least under Android) and must be re-aquired.
Reproduction
Steps to reproduce the behavior:
- Reduce the display turnoff time to the shortest possible time and make sure the display actually turns off
- Open a recipe in view mode (at least currently)
- Wait and see that the wake lock actually works
- Turn off the display and turn it on again. You see the app again
- After the turn-off delay the display turns off.
Expected behavior
The turn-off does not depend if the user clicked somewhere unexpected and by accident disabled the wake lock.
Browser
Firefox for Android
Versions
Cookbook version: 0.11.9
Additional point
Ideally the wake log should be extracted into its own composable to be reused by Vue components and stuff whereever needed.
Description
There is a wake lock in place currently for displaying a recipe.
This fails short in case one of these events happen:
In either case, the wake lock is released by the OS (at least under Android) and must be re-aquired.
Reproduction
Steps to reproduce the behavior:
Expected behavior
The turn-off does not depend if the user clicked somewhere unexpected and by accident disabled the wake lock.
Browser
Firefox for Android
Versions
Cookbook version: 0.11.9
Additional point
Ideally the wake log should be extracted into its own composable to be reused by Vue components and stuff whereever needed.