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

Unable to get device source from getDailyStepCountSamples

Open winardis opened this issue 5 years ago • 2 comments

Hi i cant seem to get the source of steps from the getDailyStepCountSamples is there any parameter or other setup i need to add to be able to fetch the source device? i need it to mark what step comes from what device with HKDevice's udiDeviceIdentifier, model and name

here is the current code that i use to request steps ` var options = { startDate: Helper.prev6Days(), endDate: Helper.isoString(), skipManual: true }

AppleHealthKit.getDailyStepCountSamples(options, (err, results) => { if (err) { console.log('getDailyStepCountSamples', err) return; } else { console.log('results', results); } }); ` Screen Shot 2020-02-06 at 11 39 45 AM

winardis avatar Feb 06 '20 04:02 winardis

I'm getting sourceName in result.sources.firstObject.name

Nitesh-Kanyal avatar Jul 07 '20 13:07 Nitesh-Kanyal

I'm getting sourceName in result.sources.firstObject.name

Is this available from the js side?

mhashim6 avatar Oct 14 '20 10:10 mhashim6