07-02-2020 07:53
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

07-02-2020 07:53
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
I've been creating an android app and I want it to directly communicate to the Fitbit companion app. I see that there is a WebSocket API, but i want something more direct. Is there a way for the companion app to receive data from an android app in its cache or internal storage directly? Thanks.
Sincerely,
Will
Answered! Go to the Best Answer.

Accepted Solutions
07-02-2020 08:11
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

07-02-2020 08:11
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
Sorry,
No. The companion app is sandboxed. The most direct way is to use the websocket. However, you can make the websocket localhost. That is the most direct. I ended up using NanoHTTPD to run a local server.

07-02-2020 08:11
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

07-02-2020 08:11
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
Sorry,
No. The companion app is sandboxed. The most direct way is to use the websocket. However, you can make the websocket localhost. That is the most direct. I ended up using NanoHTTPD to run a local server.

07-09-2020 20:33
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

07-09-2020 20:33
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
I see. I was hoping that there was a direct offline way to communicate. Thanks for your input.

