I want to build an app that can connect to fibit devices. After receiving heart rate data, it is automatically sent to the cloud in real time. Is it possible?
Answered! Go to the Best Answer.
Best Answercan you tell me why not?
Best Answercan i confirm?
The companion component can't run continuously for long periods.
are you talking about the application that runs on the phone that cannot run continuously for a long time, right?
Best AnswerThat's right. The companion bit actually runs 'within' the Fitbit app, but it can't run continually because of phone operating systems' power-saving requirements.
It usually restarts when it receives a communication from the watch, but communications tend to be a bit troublesome. Sometimes it's necessary to restart things to get them going again.
If the phone is always in charge state. does the operating system require power saving?
If the operating system does not require power saving, the application can run continuously right?
Best AnswerThank you. I will test it.
I ask that because when playing games on the phone, especially online games, the essence of the app running on the phone is also transmitting data from the phone to the server while still ensuring real-time. So turning on the app is completely capable of running for a long time until the phone runs out of battery.
Best AnswerWhat you say makes sense. I hope you're right!
The other problem is comms reliability over long periods. You might need to implement dummy comms in your test to properly explore the companion life-cycle, so you may kill two birds with one stone.