03-26-2019 08:55 - edited 03-26-2019 12:35
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

03-26-2019 08:55 - edited 03-26-2019 12:35
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
Hi,
Subject: Continuously send data when i open app from watch.
- 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?
Answered! Go to the Best Answer.

Accepted Solutions
03-26-2019 15:40
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

03-26-2019 15:40
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
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...

03-26-2019 15:40
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

03-26-2019 15:40
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
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...

03-29-2019 07:37 - edited 03-29-2019 08:30
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

03-29-2019 07:37 - edited 03-29-2019 08:30
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
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

