You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Fitbit app or Google Fit upload activity data to their servers' APIs quite regularly, even when the app is in the background (not terminated though).
I wrote a little Expo app after the Step Counter tutorial, which gathers steps count data in the background from Apple Health and from Android Health Connect. It then uploads the step count to my own API. I can trigger the query+upload either :
manually
using background fetch
on receiving a silent push notification from my backend
But the OS (iOS, Android) throttles the execution of the task, depending on the battery optimizations, battery charge, on how much the app is used in the foreground, etc... I hardly manage to have an execution every 20-60 min during daytime, and I observe long pauses (up to 8-10 hours) during inactive or night time.
How does the Fitbit app manage to execute the regular data uploads even when backgrounded for a long time ???
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello,
The Fitbit app or Google Fit upload activity data to their servers' APIs quite regularly, even when the app is in the background (not terminated though).
I wrote a little Expo app after the Step Counter tutorial, which gathers steps count data in the background from Apple Health and from Android Health Connect. It then uploads the step count to my own API. I can trigger the query+upload either :
But the OS (iOS, Android) throttles the execution of the task, depending on the battery optimizations, battery charge, on how much the app is used in the foreground, etc... I hardly manage to have an execution every 20-60 min during daytime, and I observe long pauses (up to 8-10 hours) during inactive or night time.
How does the Fitbit app manage to execute the regular data uploads even when backgrounded for a long time ???
Thanks
Lorenzo
Beta Was this translation helpful? Give feedback.
All reactions