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

How to query and return a subset of resutls like what findWorkouts() returns #125

Open
REPTILEHAUS opened this issue Jul 13, 2022 · 0 comments

Comments

@REPTILEHAUS
Copy link

REPTILEHAUS commented Jul 13, 2022

I can query HKQuantityTypeIdentifierDistanceWalkingRunning but it doesnt return miles, calories or energy the same way it does when returning findWorkouts() is there some way to be able to query the same info in findWorkouts from a starting and end date ?

    var workoutRunOptions = {
      'startDate': new Date(new Date().getTime() - 24 * 60 * 60 * 1000), // a day ago
      'endDate': new Date(), // now
      'sampleType': 'HKQuantityTypeIdentifierDistanceWalkingRunning',
      'unit': 'm'   
    }    
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

1 participant