05-29-2019 11:21
05-29-2019 11:21
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 Answer05-29-2019 16:19
Gold Fitbit Product Experts share support knowledge on the forums and advocate for the betterment of Fitbit products and services. Learn more
05-29-2019 16:19
No, but you can still respond to other events and/or use setInterval()/setTimeout().
Best Answer05-29-2019 13:35
Gold Fitbit Product Experts share support knowledge on the forums and advocate for the betterment of Fitbit products and services. Learn more
05-29-2019 13:35
Your app stays running unless another app is started. However, ontick events don't occur when the screen is off.
Best Answer05-29-2019 16:07
05-29-2019 16:07
is there a way to make ontick events occur if the screen is off?
Best Answer05-29-2019 16:19
Gold Fitbit Product Experts share support knowledge on the forums and advocate for the betterment of Fitbit products and services. Learn more
05-29-2019 16:19
No, but you can still respond to other events and/or use setInterval()/setTimeout().
Best Answer