CMMotionActivityManager fails to detect 'cycling' in iOS 10

Originator:river2470
Number:rdar://28822819 Date Originated:18-Oct-2016 09:52 PM
Status:Open Resolved:
Product:iOS Product Version:
Classification: Reproducible:
 
Area:
HealthKit (Health / Activity)

Summary:
Even if I cycled for a long time,
CMMotionActivityManager never returns CMMotionActivity 
in which the value of 'cycling' is 'true'.
The value of 'cycling' is always 'false'.

After upgrading my iPhone to iOS 10, the value is always 'false'.
Before upgrading (i.e. in iOS 9), I could get some results in which the value is 'true'.

Steps to Reproduce:
1. Cycle with iPhone for a while
2. Check the history of CMMotionActivity by calling CMMotionActivityManager.queryActivityStarting

Expected Results:
I can get some CMMotionActivity in which the 'cycling' value is 'true'.

# Of course, I understand that the motion processor sometimes fails to estimate the user's motion.



Actual Results:
However, I can not get any CMMotionActivity in which the 'cycling' value is 'true' after upgrading to iOS 10.
Before upgrading, I could get some CMMotionActivity in which the 'cycling' value is 'true'.
# I ride my bicycle every weekday.

I wrote an app for iPhone to check all of CMMotionActivity cached (7 days).
 https://github.com/river24/CyclingChecker
This app shows the CMMotionActivity in which the 'cycling' value is 'true'.

With this app, I checked on the following environments:
 - NG : iPhone SE 64GB (SIM Free) + iOS 10.0.2 (14A456)
 - NG : iPhone 6s 16GB (SIM Free) + iOS 10.0.2 (14A456)
 - OK : iPhone 6s 16GB (SIM Free) + iOS 9.3.2 (13F69)
 - OK : iPhone 6 16GB (SIM Free) + iOS 8.3 (12F70)

 * OK : Get some CMMotionActivity in which the 'cycling' value is 'true'
   NG : Get no CMMotionActivity in which the 'cycling' value is 'true'
   I carried all iPhones together


Version:
iOS 10.0.2 (14A456)

Notes:


Configuration:
iPhone SE 64GB (SIM Free)

Attachments:

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!