10-14-2020 11:38
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

10-14-2020 11:38
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
I want to sampling the sensors data (all the available sensors such as Accelerometer and Gyroscope) every [X] seconds and send the data to the app\web such that I could export the data as csv or another format.
I need that the sampling app will start automatically once the device turn on and continue to run as long as the device is on (the app should run in the background)
There is a way to do that?
If yes, which devices supports it?
Answered! Go to the Best Answer.
Accepted Solutions
10-14-2020 12:38
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post


10-14-2020 12:38
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
Most of that would be possible, by writing a clockface that sends the data via the Fitbit app on your phone.
You'd need to use a Fitbit OS device (Ionic/Versa*/Sense).
Clockfaces keep running when the display is off, but if the user opens some other app (eg, Settings), the clockface will stop and so can't send data. There is no background execution.
The setup would be vulnerable from comms dropouts in the connection to the phone, and the phone OS may also stop the phone component from running continually.
It's also tricky to code!
Gondwana Software

10-14-2020 12:38
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post


10-14-2020 12:38
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
Most of that would be possible, by writing a clockface that sends the data via the Fitbit app on your phone.
You'd need to use a Fitbit OS device (Ionic/Versa*/Sense).
Clockfaces keep running when the display is off, but if the user opens some other app (eg, Settings), the clockface will stop and so can't send data. There is no background execution.
The setup would be vulnerable from comms dropouts in the connection to the phone, and the phone OS may also stop the phone component from running continually.
It's also tricky to code!
Gondwana Software

10-14-2020 12:48
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

10-14-2020 12:48
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
Thanks for the reply.
So there is no way to develop a background app?
I must to sampling the sensors always without missing data, It's Ok if the data will send only one time in day for example but the sampling must continue always.

10-14-2020 12:53
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post


10-14-2020 12:53
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
No, there is no background execution. Only one clockface or app can be running at any one time. You'd have to not use any other clockface or app (including Settings, Today, etc).
Gondwana Software

10-14-2020 12:56
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

10-14-2020 12:56
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
And there is a way that once the user closed the another app my app will start automatically?

10-14-2020 12:59
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post


10-14-2020 12:59
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
Yes. Your app would need to be set as the current clockface, which is automatically started when the watch starts and when any other app is closed. Therefore, you'd want to make it tell the time, probably!
Gondwana Software

10-14-2020 13:11
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

10-14-2020 13:11
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
Thanks Gondwana, you've helped me a lot.

