02-27-2023 23:09
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

02-27-2023 23:09
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
I'm trying to develop an app that will enable bi-directional communication between a Fitbit versa and an android app.
Basically I want to send real-time heart rate data to the companion and have the companion send that data to a web server. From here I want to pull that data into an android app who depending on the data will send a message back to the companion to make the Fitbit vibrate.
Is this type of communication possible? If so, do you have any recommendations?
Answered! Go to the Best Answer.

Accepted Solutions
02-27-2023 23:53
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post


02-27-2023 23:53
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
There is a couple of things here that might also help (Accelerometer Fetcher and Android Fitbit Fetcher). The architecture of that system is a bit different to what you're proposing, because the Android app doubles as the server.
Your Fitbit clockface or app will need to be running for this to work, because we can't run stuff in the background on the watch.
Gondwana Software

02-27-2023 23:17
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

02-27-2023 23:17
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
Yes, this should be possible. I would recommend starting with https://dev.fitbit.com/build/guides/communications/

02-27-2023 23:53
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post


02-27-2023 23:53
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
There is a couple of things here that might also help (Accelerometer Fetcher and Android Fitbit Fetcher). The architecture of that system is a bit different to what you're proposing, because the Android app doubles as the server.
Your Fitbit clockface or app will need to be running for this to work, because we can't run stuff in the background on the watch.
Gondwana Software

03-06-2023 17:54
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

03-06-2023 17:54
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
can the companion retrieve data from the server?

03-06-2023 18:30
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post


03-06-2023 18:30
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
Yes. It can either poll the server using fetch() and process the server's response(s), or use a WebSocket.
Gondwana Software

03-08-2023 14:49
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

03-08-2023 14:49
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
I appreciate all of your help!
Would you by any chance know of any documentation i could reference to have android app double as a server?
Again, i appreciate all the help!

03-08-2023 14:55
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post


03-08-2023 14:55
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
The Android Fitbit Fetcher I mentioned before is a server. Be warned: it's extremely ugly code because my Android is very rusty.
Gondwana Software

