Cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to keep the screen on?

ANSWERED

Hello,

Is there a way to keep the screen on while the app the running? I'm looking at making an app that you need to look at almost continuously. Right now by default, the screen turns off after a few seconds then I need to press the button...

Nicolas.

Best Answer
0 Votes
1 BEST ANSWER

Accepted Solutions

I have been using this in my app:

import { display } from "display";
display.autoOff = false;

View best answer in original post

Best Answer
4 REPLIES 4

yes there is, but, the screen disables, for good reason - battery life.

 

if you visit the fitbit discord channel there has been discussion, and code, re keeping the screen on.

 

out of my own interest, i did a test with a watchface, and never reached 1 day. an app will likely be a different use case.

 

a feature suggestion could be to make the length (time) configurable via your fitbit profile eg 2/5/10/20 secs..

Best Answer
0 Votes

I have been using this in my app:

import { display } from "display";
display.autoOff = false;
Best Answer

Thanks,

 

I'm looking at keeping the screen on for up to 2 hours not more so I would expect the battery life to be fine 🙂

In my case there is value in keeping the screen on all the time as the user is expected to keep looking at it.

 

Nicolas.

Best Answer
0 Votes

how do you insert this code in the app?


@agsurf5 wrote:

I have been using this in my app:

import { display } from "display";
display.autoOff = false;

 

Best Answer