rn-apple-healthkit
rn-apple-healthkit copied to clipboard
Getting samples of data are not working
Hi everyone, since I am seeing it a lot here, I want to ask if anyone knows why methods get[something]Samples are not working?
Is there is any general issue for all of them? Tried to get SleepSamples and WalkingRunningDistanceSample, both return empty array every time. Looks like it's the same for all other methods for getting samples.
It seems like one issue occurs everywhere, have anyone tried to dig why that happens?
I was just digging into why getDailyStepCountSamples was always returning an empty array for me. By default the library excludes manually added data (at least for getDailyStepCountSamples). After passing includeManuallyAdded: true flag to the options object it works as expected. Not sure if you're with manually added data, but could be something worth checking.
I was just digging into why
getDailyStepCountSampleswas always returning an empty array for me. By default the library excludes manually added data (at least forgetDailyStepCountSamples). After passingincludeManuallyAdded: trueflag to the options object it works as expected. Not sure if you're with manually added data, but could be something worth checking.
Nice find
includeManuallyAdded: true
@jacquerie - You are the hero I needed