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

How can i send accelerometer data from Companion API?

ANSWERED

Hi, 

 

Subject: Continuously send data when i open app from watch.

 

  1. I saw a few forum answers and got me an idea I can send the accelerometer values to some other server via Companion API.  

    2. Can someone write small code how can App/index.js  interact with Companion/index.js(accessing acc values in companion/index.js from app/index.js)?

 

     I saw using "fetch" function in companion will able to send the data to my server.

 

 

how can I run the Installed app run in the background without stopping? 

Best Answer
0 Votes
1 BEST ANSWER

Accepted Solutions

how can I run the Installed app run in the background without stopping? 

 

Not possible yet: https://community.fitbit.com/t5/Feature-Suggestions/Ability-to-run-some-code-in-background/idi-p/300...

View best answer in original post

Best Answer
0 Votes
2 REPLIES 2

how can I run the Installed app run in the background without stopping? 

 

Not possible yet: https://community.fitbit.com/t5/Feature-Suggestions/Ability-to-run-some-code-in-background/idi-p/300...

Best Answer
0 Votes

I used this concept for transferring values from app/index.js  to companion/index.js 

https://dev.fitbit.com/build/guides/communications/messaging/ 

 

I have one issue in this:

1. whenever I'm running installed Fitbit the values are not sending until I turn on in the mobile developer bridge on.

even if I turned on that option in the mobile, it sending max 4-5 min not more than that. it is disconnecting very fast 😞

 

Is there a way where I can send the accelerometer values continuously just by clicking the installed app? @paperinik @JonFitbit 

paperinik

Best Answer
0 Votes