08-01-2018 15:44
08-01-2018 15:44
Hi Fitbit devs!
03-12-2019 05:59
03-12-2019 05:59
I am also having this problem. The application we are building requires the watch to be connected to the companion persistently and so far we have not found a way to force the companion to reopen when it decides to unload itself.
04-28-2019 12:31
04-28-2019 12:31
Same. I'm working on Ionic app and since I'm new to the whole Fitbit sdk and evn, I'd like to simply have good connection to test messaging. It's quite frustrating how unreliable is the connection! No idea how to improve. Phone and the Ionic device are literally touching each other and next to the router.
04-29-2019 01:13
04-29-2019 01:13
Hi,
we're in the same situation with our sleep tracking app, where we need the companion to run for several hours and send messages quickly and reliably, ideally every two minutes but often more frequently.
I'm trying to overcome the issues for the past few months, so I'll share some of what I learned in the process, and what I've tried with inconclusive results.
Disclaimer: below is my experience, and things may have changed in the meantime, bugs fixed, or my incompetence at programming, at testing, or at living in general might have convinced me that I see things that don't exist.
With that said...
The companion, in words of Jon Barlow, is "designed to be suspended", however I was also told that "in theory, if your app is running, your companion is running" by Liam McLoughlin.
The companion would be woken up by launchReason [startedOnTracker] when you start your watch app. In theory, until the watch app is stopped, the companion should run. I found some scenarios when the companion could stop even though the watch app runs:
Inconclusive results / don't know if has any effect:
What CAN be done:
Sometimes when heavily testing, I find out that I cannot get the companion to start no matter what, and I have to Force close the Fitbit app and reopen it, which will probably reinit something crashed in there.