My app doesn't run when the screen goes off. For example, I put several console.log in the code to see if every function works. But when I'm using my Fitbit and the screen turns off, it stops the code and doesn't refresh unless I turn it on again. Is there a way to make the code run without letting the screen on permanently? Thank you.
Answered! Go to the Best Answer.
Best AnswerNo, but you can still respond to other events and/or use setInterval()/setTimeout().
Best Answeris there a way to make ontick events occur if the screen is off?
Best AnswerNo, but you can still respond to other events and/or use setInterval()/setTimeout().
Best Answer