I am using CMStepCounter
and CMMotionActivityManager
.
What I would like to do is work out my total walking time throughout the day, and from this, my average speed.
However, looking at the data in CMMotionActivityManager
, it is clear than a number of steps throughout the day are actually logged during periods that are of 'unknown activity' and not walking or running. This does make sense, as you need to do a handful of steps for iOS to know you are walking. However, these add up over the course of any given day.
Querying CMMotionActivity
, it is possible to get the timestamp of every event. However, whilst it is clear to me that every step must be timestamped in CMStepCounter
, I can only see a method to return the total number of steps between two points in time. What would be great is if I could return an array of every step with its time stamp, and if so, how?
Many thanks.