Cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Develop Companion App

ANSWERED

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. 

Best Answer
0 Votes
1 BEST ANSWER

Accepted Solutions

[Deleted.]

Peter McLennan
Gondwana Software

View best answer in original post

Best Answer
0 Votes
14 REPLIES 14

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.

Peter McLennan
Gondwana Software
Best Answer
0 Votes

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. 

Best Answer
0 Votes

The companion can't run outside of the Fitbit app. It can't display anything other than via a settings page.

Peter McLennan
Gondwana Software
Best Answer
0 Votes

Ok I see, so how do I collect the Heart Rate from fitbit device and store it to my own Server via API? 

Best Answer

Use messaging or file transfer to get it from watch to companion.

 

Use fetch or WebSocket to get it from companion to server.

Peter McLennan
Gondwana Software
Best Answer
0 Votes

[Deleted.]

Peter McLennan
Gondwana Software
Best Answer
0 Votes

I see, so is it possible to build an app like using Android Studio to communicate to Fitbit App at the same device? Thanks. 

Best Answer

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.

Peter McLennan
Gondwana Software
Best Answer

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. 

Best Answer

Already connected like this using BLE from android studio, but still have no idea about how to get the heart rate. 

 

  Fitbit2.jpgFitbit.jpg

Best Answer

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.

Peter McLennan
Gondwana Software
Best Answer

Why was this deleted...?

What was here....?

Best Answer
0 Votes

Best Answer
0 Votes

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.

Best Answer