问题描述
Apple在新款iPhone 5s中增加了M7的步数支持。这是关于isStepCountingAvailable的文档
当我跑步时:
BOOL isUsersHardwareCompatibleWithPedometerApp = [CMStepCounter isStepCountingAvailable];
我的5s isUsersHardwareCompatibleWithPedometerApp的值是 YES
。
对于Core Motion的CMStepCounter类方法,哪些设备将返回YES + isStepCountingAvailable
?我也可以限制在AppStore中下载我的应用程序返回 NO
的设备吗?或者是否有一个很好的代理来限制用户下载我的应用程序,例如前置摄像头是确定用户是否至少有512mb内存的良好代理?
我没有设备可以测试,但是@_DavidSmith,流行的计步器++应用程序的创建者已确定新的iPad Air / rMini不提供步骤数据。
因此到目前为止iPhone 5s是唯一的设备支持步骤数据。
Apple added step count support with the M7 in the new iPhone 5s. This is the documentation on isStepCountingAvailable
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?
I don't have a device to test with but @_DavidSmith, creator of the popular Pedometer++ app has determined that the new iPad Air/rMini don't give step data.
https://twitter.com/_DavidSmith/status/404252937821900801
Thus so far the iPhone 5s is the only device that supports step data.
这篇关于哪些iOS设备支持CMStepCounter?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!