The following chart lists my step data from HealthKit vs. the CMPedomoter class:
HealthKit CMPedometer difference
1 2710 2681 -29
2 2569 2580 11
3 2367 2312 -55
4 1326 1311 -15
5 2728 2711 -17
6 860 886 26
7 6293 6299 6
There is a slight difference each day between the two. Does anyone know why this might be the case? No other app is writing step data currently to this device.
Problems is that all steps has Float value so for example in real could be:
and if you sum it like integer you will get 31 steps and if you round it before you will get 35
also had this issue when synch data from pedometer and health kit