简体   繁体   English

有人如何在iPhone上获得加速度计的历史记录?

[英]How can someone get accelerometer history on the iPhone?

We're interested on reading accelerometer history on the iPhone. 我们有兴趣在iPhone上阅读加速度计的历史记录。 Most research indicates that the iPhone app needs to access and record accelerometer data directly. 大多数研究表明,iPhone应用程序需要直接访问和记录加速度计数据。

It was mentioned that the an employee at the Apple genius bar can connect a device to read the pas 2 or 3 months of accelerometer data in order to determine if the phone was dropped, etc. 提到苹果天才酒吧的一名员工可以连接设备以读取2个月或3个月的加速度计数据,以确定手机是否掉落等。

Is this accelerometer log accessible by the developer via the iPhone SDK? 开发人员可以通过iPhone SDK访问此加速度计日志吗? Reading this would be helpful for our application. 阅读本文将对我们的应用程序有所帮​​助。

Does anyone know if accessing this data via the SDK is possible? 有谁知道是否可以通过SDK访问此数据?

Thanks 谢谢

The accelerometer chip is almost always turned off, unless turned on by specific request by an app for the duration of that app's use, in order to reduce battery drain. 加速度计芯片几乎总是关闭,除非在应用程序使用期间通过某个应用程序的特定请求将其打开,以减少电池消耗。 So there usually is no data to record. 因此,通常没有要记录的数据。

There is nothing in the Core Motion SDK which will provide a history of acceleration data; Core Motion SDK中没有任何东西可以提供加速度数据的历史记录; it must be recorded by your application. 它必须由您的应用程序记录。 Over a period of months that is probably not possible. 在几个月内这可能是不可能的。

If such a history exists it would be accessible either: 如果存在这样的历史记录,则可以访问:

  1. Directly via the iOS filesystem in an area outside your application environment which you cannot access in non-jailbroken apps. 直接通过应用程序环境之外的区域中的iOS文件系统,您无法在非越狱应用程序中访问该文件系统。

OR 要么

  1. Via a private API from the SDK which Apple would reject your app for using. 通过SDK的私有API,Apple会拒绝您的应用程序使用。

If you want to make an app which needs access to such information (assuming such information exists) you must contact Apple and ask them to grant you special privileges to use the APIs involved. 如果要制作需要访问此类信息的应用程序(假设存在此类信息),则必须联系Apple,并要求他们授予您特殊的特权以使用所涉及的API。 They have done so before (with other private APIs) with other companies but usually big ones. 他们以前曾与其他公司(通常是大型公司)(通过其他私有API)这样做。 Still it never hurts to try. 尝试仍然没有伤害。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM