07-02-2020 07:53
07-02-2020 07:53
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.
07-02-2020 08:11
07-02-2020 08:11
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
07-02-2020 08:11
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
07-09-2020 20:33
I see. I was hoping that there was a direct offline way to communicate. Thanks for your input.