12-28-2020 22:24
12-28-2020 22:24
Hello,
I wrote a simple app to continuously monitor and process accelerometer data. With the timeout api disabled, it seems the app kept running after the screen is off. However, if I press the physical button on the left side (Fitbit versa 2), the app will exit and stop acquiring data from accelerometer.
I wonder if there is any recommended way to keep the app run in background on the Fitbit device?
Thank you!
Answered! Go to the Best Answer.
12-28-2020 22:39
12-28-2020 22:39
Unfortunately, there is no 'background'. Only one app or clockface can run at any one time.
You could consider making your app into a nice clockface, so there's less incentive to close it. However, it will still close if any other app is started (Settings, Exercise, Timer, etc).
12-28-2020 22:39
12-28-2020 22:39
Unfortunately, there is no 'background'. Only one app or clockface can run at any one time.
You could consider making your app into a nice clockface, so there's less incentive to close it. However, it will still close if any other app is started (Settings, Exercise, Timer, etc).
12-29-2020 09:58
12-29-2020 09:58
Thank you very much!
01-03-2021 20:57
01-03-2021 20:57
For sure you can override the back button, so at least you can make the user to be prompted before stopping an operation.
07-03-2021 02:02
07-03-2021 02:02
Hi Peter
If there is no background facility how does the Timer app continue running in background [or launch itself] so that when the timer reaches 0 it can set the vibration going?
Author | ch, passion for improvement.
07-03-2021 02:26
07-03-2021 02:26
Fitbit's own apps (and some of their partners' apps such as for music) have access to capabilities that aren't available publicly.
07-12-2023 08:17
07-12-2023 08:17
App Timeout API is the closest thing to it. I've used it on my project https://medium.com/@sasojakljevic/designing-building-a-fitbit-smartwatch-app-4e07def03121
07-12-2023 08:41
07-12-2023 08:41
Hi @Sasoj - you are right, you can keep an App running by using
But if you are running a timer app, the timer stops the moment you do something else.
However I got around the problem by running the timer as an Addon in background to the clock face which might be of interest.
Author | ch, passion for improvement.