Skip to content
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

Unable to get device source from getDailyStepCountSamples #146

Open
winardis opened this issue Feb 6, 2020 · 2 comments
Open

Unable to get device source from getDailyStepCountSamples #146

winardis opened this issue Feb 6, 2020 · 2 comments

Comments

@winardis
Copy link

winardis commented Feb 6, 2020

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

@Nitesh-Kanyal
Copy link

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

@mhashim6
Copy link

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

Is this available from the js side?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants