rn-apple-healthkit icon indicating copy to clipboard operation
rn-apple-healthkit copied to clipboard

Getting samples of data are not working

Open Vladosk1n opened this issue 5 years ago • 3 comments
trafficstars

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?

Vladosk1n avatar Apr 12 '20 23:04 Vladosk1n

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.

janczizikow avatar Apr 20 '20 12:04 janczizikow

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.

Nice find

calebmackdavenport avatar May 07 '20 19:05 calebmackdavenport

includeManuallyAdded: true

@jacquerie - You are the hero I needed

jamespearson avatar Jun 13 '20 12:06 jamespearson