I am working on personal health assistance application where I have to calculate some data such as walking steps, time and distance. Similar for running and automotive(when user is riding on vehicle). This will collect data w.r.t time - collect device data.
For walking I have used CMPedometer to calculate distance and steps (though could not find any help in measuring time).
But for calculating running distance and time I did not find any help. I have tried with CMMotionActivityManager but CMMotionActivity only returns the activity type (running or automotive) and start time no end time or any distance.
Please help me to find a solution to get this data without running the app in foreground.
thank you