Replies: 3 comments 1 reply
-
Use these @ronnyhel // don't turn off the screen for 600 seconds
import { setPageBrightTime } from '@zos/display'
const result = setPageBrightTime({
brightTime: 600 * 1000,
})
// don't turn off the screen on wrist down for 600 seconds
import { pauseDropWristScreenOff } from '@zos/display'
pauseDropWristScreenOff({
duration: 600 * 1000,
}) |
Beta Was this translation helpful? Give feedback.
0 replies
-
I would also add import { setWakeUpRelaunch } from '@zos/display'
setWakeUpRelaunch({ relaunch: true }); |
Beta Was this translation helpful? Give feedback.
1 reply
-
I don't want to avoid the screen turning off. It's ok if it turns off. But
when it turn on again I'd like to have my app in foreground again
automatically
Il gio 6 mar 2025, 18:29 Silver ***@***.***> ha scritto:
… Use these @ronnyhel <https://github.com/ronnyhel>
// don't turn off the screen for 600 secondsimport { setPageBrightTime } from ***@***.***/display'const result = setPageBrightTime({
brightTime: 600 * 1000,})
// don't turn off the screen on wrist down for 600 secondsimport { pauseDropWristScreenOff } from ***@***.***/display'pauseDropWristScreenOff({
duration: 600 * 1000,})
—
Reply to this email directly, view it on GitHub
<#410 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AFH4TSJF54URAGUCE7B2SYD2TCAWZAVCNFSM6AAAAABYPH3O3OVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTENBRG4YDCMI>
.
You are receiving this because you were mentioned.Message ID:
***@***.***
com>
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hey Folks
I'm trying to develop an app for my amazfit balance. It should help to keep the padel score during a match.
Currently, when the screen turns off and then I turn it on again, the app is closed and I have to reopen it, that's a bit annoying. The score is still there since I'm using a LocalStorage to memorize the state but I'd like to keep the app open and ready to receive the next input.
What do you think?
thanks in advance
Beta Was this translation helpful? Give feedback.
All reactions