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 Retrieve Step Count Data After App is Killed and Access All Historical Steps? #49

Open
Qurat-ul-ainn opened this issue Oct 2, 2024 · 0 comments

Comments

@Qurat-ul-ainn
Copy link

Qurat-ul-ainn commented Oct 2, 2024

How does the step counter continue to work when the app is in a killed state, and how can I retrieve all step count data from the past, up until now?

I'm passing whatever it returns from the current time.

const startStepCounter = () => {
const startDate = new Date('2024-9-25');

startStepCounterUpdate(new Date('2024-9-25'), (data) => {
  setStepCount(data.steps);
  console.log(data, "DATA FROM PEDO");
  console.log(parseStepData(data), "Parsed data");

});

};

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