Unable to get device source from getDailyStepCountSamples
winardis opened this issue · 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);
}
});
`
I'm getting sourceName in result.sources.firstObject.name
I'm getting sourceName in result.sources.firstObject.name
Is this available from the js side?