I'm developing an app that uses HKStatisticsCollectionQuery to get daily step count data from HealthKit. I am using initialResultsHandler.
The following cases have occurred.
When the app got the steps on November 30th, the number of steps on November 29th was 7699 steps. Then, when the app got the steps again on December 1st, the number of steps on November 29th was 16011 steps.
Is it possible that an inaccurate number of steps is returned temporarily, and then the correct number of steps is returned when reacquired? Is there a way to ensure that I get accurate step count data from the beginning?