GregWilson / react-native-apple-healthkit

A React Native bridge module for interacting with Apple HealthKit data
176 stars 42 forks source link

integration with HKObserverQuery #3

Open anthonychung14 opened 7 years ago

anthonychung14 commented 7 years ago

Any ideas on how to run background tasks with this library?

Spec would be to run a GET request in the background for number of steps they've taken if phone is unlocked. App would run in background and GET data from HealthKit and then POST to DB.

Something along the lines of this request (read the comments under the accepted answer) http://stackoverflow.com/questions/30361033/healthkit-data-inaccessible-in-background

JulianKingman commented 6 years ago

@anthonychung14 did you figure anything out for background fetch?