12-28-2020 22:24
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

12-28-2020 22:24
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
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.

Accepted Solutions
12-28-2020 22:39
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post


12-28-2020 22:39
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
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).
Gondwana Software

12-28-2020 22:39
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post


12-28-2020 22:39
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
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).
Gondwana Software

12-29-2020 09:58
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

12-29-2020 09:58
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
Thank you very much!

01-03-2021 20:57
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

01-03-2021 20:57
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
- Who Voted for this post?
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
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post


07-03-2021 02:02
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
- Who Voted for this post?
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
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post


07-03-2021 02:26
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
- Who Voted for this post?
Fitbit's own apps (and some of their partners' apps such as for music) have access to capabilities that aren't available publicly.
Gondwana Software
07-12-2023 08:17
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

07-12-2023 08:17
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
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
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post


07-12-2023 08:41
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
Hi @Sasoj - you are right, you can keep an App running by using
appTimeoutEnabled = false;
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.

