04-10-2020 07:06
04-10-2020 07:06
Hello Guys, i'm trying to develop companion app to communicate to my Fitbit Ionic, my Xiaomi Redmi Note 4 and Fitbit Ionic already connected to Fitbit Studio, when I run the project I can see the app run on My Fitbit Device, but no app installed to my phone, do you guys have any idea? is companion app available as an App on Phone just like developing app using Android Studio?
Thanks Guys, please help.
Answered! Go to the Best Answer.
04-10-2020 20:57 - edited 04-10-2020 20:57
04-10-2020 20:57 - edited 04-10-2020 20:57
04-10-2020 13:38
04-10-2020 13:38
The companion bit on your phone would appear within the Fitbit app on your phone. You'll need to turn the 'developer' setting on in the Fitbit app. You won't see your companion running unless it has a Settings page.
04-10-2020 20:43
04-10-2020 20:43
Thanks @Gondwana , i already seen the app within app the Fitbit App, but i expect to see it run as usual android app which has it own page (standalone outside fitbit app), is it possible?
anw what do you mean about Settings page? Thanks.
04-10-2020 20:48
04-10-2020 20:48
The companion can't run outside of the Fitbit app. It can't display anything other than via a settings page.
04-10-2020 20:51
04-10-2020 20:51
Ok I see, so how do I collect the Heart Rate from fitbit device and store it to my own Server via API?
04-10-2020 20:56
04-10-2020 20:56
Use messaging or file transfer to get it from watch to companion.
Use fetch or WebSocket to get it from companion to server.
04-10-2020 20:57 - edited 04-10-2020 20:57
04-10-2020 20:57 - edited 04-10-2020 20:57
[Deleted.]
04-11-2020 02:43
04-11-2020 02:43
I see, so is it possible to build an app like using Android Studio to communicate to Fitbit App at the same device? Thanks.
04-11-2020 14:17
04-11-2020 14:17
I think that would be possible. I've used DoryNode to execute a NodeJS app that acts as a server so it can accept fetch() or WebSocket communications from the Fitbit companion app (ie, it all runs on the phone).
So long as you can develop a simple web server in Android Studio, you should be able to do it.
04-27-2020 05:40
04-27-2020 05:40
So Fitbit communicates to Companion, and while that communication is running we listen using Fetch or WebSocket from another app in the same Phone? is it working like that? Thanks.
04-27-2020 07:44
04-27-2020 07:44
Already connected like this using BLE from android studio, but still have no idea about how to get the heart rate.
04-27-2020 14:24
04-27-2020 14:24
That's sort-of right. Your Fitbit companion code has to use fetch() or WebSocket to send the data to a server on the phone (if you're not using https).
You have a write a server to receive the data. If you use fetch() in the companion, the server will see it as a request (eg, POST). If you use WebSocket in the companion, the server will see it as a socket message.
04-05-2021 09:01
04-05-2021 09:01
Why was this deleted...?
What was here....?
04-10-2021 03:20
12-21-2021 12:37
12-21-2021 12:37
The companion bit on your phone would appear within the Fitbit app on your phone. You will need to turn the 'developer' setting on in the Fitbit app. You won't see your companion running unless it has a Settings page. But I'm no expert. I don't want to give advice I'm not sure about. Perhaps you could try contacting the support team of https://flipabit.dev/. They are also a platform for making apps. Maybe they could tell you the problem and explain how to fix the issue. I wish you good luck with that.