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

getDailyStepCountSamples is not getting the total. steps per day !! #166

Open
labba7 opened this issue Jun 9, 2020 · 2 comments
Open

getDailyStepCountSamples is not getting the total. steps per day !! #166

labba7 opened this issue Jun 9, 2020 · 2 comments

Comments

@labba7
Copy link

labba7 commented Jun 9, 2020

this. function. should return the total steps for every day starting from the required start date, but this is. not the case.
it s returning total steps for every hour in the day,

any one have any idea?

@Nitesh-Kanyal
Copy link

Add period=1440 minutes(24 hours) ,You will get steps count with 24 hours difference from start date to end date.
options = {
startDate,
endDate,
ascending: false,
limit: 10,
period: 1440,
unit: "Step(s)",
includeManuallyAdded: true,
};

@akpinarserdar
Copy link

hi,

i use getStepCount func but i dont want to manually added steps from health app. set parameter of includeManuallyAdded is false but doesnt changed result. example: device step count 50 manually added 5000 return 5050 count.

let options = {
    permissions: {
      read: ['StepCount'],
    },
    startDate: start, // required
    endDate: end, // optional; default now
    includeManuallyAdded: false,
  };

const getPermission = () => {
    AppleHealthKit.initHealthKit(options, (err, results) => {
      if (err) {
        console.log('error initializing Healthkit: ', err);
        return;
      }
    });
  };

pls help.

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