Difference between CMPedometer and HealthKit Data

The following table lists my step data from HealthKit and 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 

Every day there is a slight difference between them. Does anyone know why this could be so? No other application writes step data currently to this device.

+6
source share

Source: https://habr.com/ru/post/988682/


All Articles