CMStepCounter needs ability to report date of earliest available data

Originator:spector
Number:rdar://15543172 Date Originated:23-Nov-2013 03:55 PM
Status:Open Resolved:
Product:iOS SDK Product Version:7.0.x
Classification:Enhancement Reproducible:Always
 
David Spector23-Nov-2013 03:55 PM

Summary:
At present it is not possible to determine the earliest date for data available via CMStepCounter.  The best you can do it ask for "now - 7 days"; however any moments for which data isn't available returns zeros. 
However this could be either "we never recorded anything for this moment" (i.e. phone is literally brand new with <7 days of data) or "this is a moment with a step-count of zero" (i.e, user wasn't moving).

This is a huge problem for fitness apps recording periodic step data.

Steps to Reproduce:


Expected Results:
We should be able to ask for the earliest data for which data is available and get back an NSDate; this would allow developers to optimize imports and not have to manually weed out or coalesce holes in data or magically account for a device that is either brand new or recently reset.

Actual Results:


Version:
iOS7.0.x

Notes:

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!