Apple added step count support with the M7 in the new iPhone 5s. This is the documentation on isStepCountingAvailable
isStepCountingAvailable Returns a Boolean indicating whether step-counting support is available on the current device.
- (BOOL)isStepCountingAvailable Return Value YES if step-counting support is available or NO if it is not.
Discussion Step-counting support is not available on all iOS devices. Use this method to determine if support is available on the current device.
Availability Available in iOS 7.0 and later. Declared In CMStepCounter#
When I run:
BOOL isUsersHardwareCompatibleWithPedometerApp = [CMStepCounter isStepCountingAvailable];
on my 5s isUsersHardwareCompatibleWithPedometerApp's value is YES
.
Which devices will return YES for Core Motion's CMStepCounter class method + isStepCountingAvailable
? Also can I restrict devices which return NO
from downloading my app in the AppStore? Or is there a good proxy for restricting users from downloading my app such as the front facing camera being a good proxy for determining if the user has at least 512mb of ram?