-
Notifications
You must be signed in to change notification settings - Fork 297
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[RFC] Gathering/observing data in the background and foreground #65
Comments
I don't have time to find related page in healthKit docs, but I remember that it isn't possible to use react-native-background-fetch to get healthKit data while app in Background. We have to use a built-in HK mechanism for it. |
Yes, that’s true of getting the data. That’s why in step 2 it retrieves the data in the background (using healthkit’s HKOvserverQuery, the built-in mechanism) and stores it to AsyncStorage, because (I’m pretty sure) AsyncStorage is available with background fetch. |
AFAIK background fetch doesn't run if the device is locked. |
This feature will add background observers for an arbitrary number of types of data. Below are my notes and ideas for how to implement this. Your comments and ideas are welcome.
I propose the following:
observe
E.g:
react-native-background-fetch
Per https://github.com/terrillo/rn-apple-healthkit/blob/master/docs/initStepCountObserver().md
The text was updated successfully, but these errors were encountered: