apple-m7

CoreMotion updates in background state

南笙酒味 提交于 2019-12-28 03:20:30
问题 With the M7 chip in the latest iOS devices one can get programmatically notified as the user goes from stationary to running, walking, etc using CMMotionActivityManager. Stava and Runkeeper have both used this to auto-pause GPS polling (shut off the GPS antenna) when it detects the user isn't moving via the M7, and then re-enable GPS updates once they are moving again. It is able to do this while the app is in the background state, which is the key here. The issue I run into while duplicating

Use similar technology as CMMotionActivity on older iPhones

孤者浪人 提交于 2019-12-26 00:06:32
问题 I'm looking to use the CMMotionActivity for iPhone 5s's, but also want to be able to use similar functionality on older iPhone's, is this possible? Could I create a less accurate alternative maybe, by tracking GPS and not using the M7 chip? Any advice/tutorials/sample code? 回答1: You can create your own algorithm which will utilize accelerometer data and estimate number of steps taken. Its not as accurate and its not a good idea to have 2 separate logic in the same app. In case, you want to

How to use CMMotionActivityManager and receive updates?

匆匆过客 提交于 2019-12-21 21:32:38
问题 I want to create an app that can receive and process motion updates in order to understand if the user is stationary, walking, running or is on a transport. I've seen on the reference that CMMotionActivityManager can be useful for me. The CMMotionActivityManager class provides access to the motion data stored by a device. Motion data reflects whether the user is walking, running, in a vehicle, or stationary for periods of time. I'm new to app developing and I don't understand how to use the

How to use CMMotionActivityManager and receive updates?

家住魔仙堡 提交于 2019-12-21 21:26:06
问题 I want to create an app that can receive and process motion updates in order to understand if the user is stationary, walking, running or is on a transport. I've seen on the reference that CMMotionActivityManager can be useful for me. The CMMotionActivityManager class provides access to the motion data stored by a device. Motion data reflects whether the user is walking, running, in a vehicle, or stationary for periods of time. I'm new to app developing and I don't understand how to use the

Detecting if a user is moving in a car

别来无恙 提交于 2019-12-17 15:22:49
问题 NOTICE : This question was originally posted before Apple introduced motion-detection hardware and associated APIs in the iOS SDK. Answers to this question, however, remain relevant. I'm creating an iPhone iOS app which involves tracking a user's running and / or walking. It is very important that the recorded results of the users runs and walks remain honest. I need a way to catch a user who may be cheating (or accidentally have left the tracker on) when using a car. To check if the user is

Which iOS devices support CMStepCounter?

女生的网名这么多〃 提交于 2019-12-11 01:08:29
问题 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.

CMMotionActivityManager ignores cycling

感情迁移 提交于 2019-12-09 05:47:58
问题 I've been researching the new M7 chip's CMMotionActivityManager , for determining whether the user of the device is walking, running, in a car, etc (see Apple Documentation). This seemed like a great step forward over trying to determine this previous from using LocationManager and accelerometer data only. I notice however that CMMotionActivityManager does not have a cycling activity, which is disappointing, and almost a deal-breaker for complete usage as a new activity manager. Has anyone

CMMotionActivityManager isActivityAvailable devices

混江龙づ霸主 提交于 2019-12-08 11:10:41
问题 I want to use CMMotionActivityManager , I would like to know what devices motion data is available on? Many of the places that i have read suggest that it is currently only on devices that have the M7 chip. https://developer.apple.com/library/ios/documentation/CoreMotion/Reference/CMMotionActivityManager_class/Reference/Reference.html#//apple_ref/occ/cl/CMMotionActivityManager 回答1: isActivityAvailable will return true on the M7 equipped devices: iPhone5S iPad mini with retina iPad Air Apple

Utilizing the M7 chip in the iPhone5S [closed]

限于喜欢 提交于 2019-12-04 12:55:18
Closed. This question is off-topic. It is not currently accepting answers. Learn more . Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed last year . I was wondering if anyone can point me in the right direction with regard to utilzing the M7 chip in the iPhone5S and above. I was wondering if it's just automagically used when you use general core motion APIs or is there a specific set of APIs to use? Finally I noted whilst reading some articles online that it keeps some historical movement data, anyone know how to access this or can anyone point me

CMMotionActivityManager ignores cycling

拜拜、爱过 提交于 2019-12-03 06:22:16
I've been researching the new M7 chip's CMMotionActivityManager , for determining whether the user of the device is walking, running, in a car, etc (see Apple Documentation ). This seemed like a great step forward over trying to determine this previous from using LocationManager and accelerometer data only. I notice however that CMMotionActivityManager does not have a cycling activity, which is disappointing, and almost a deal-breaker for complete usage as a new activity manager. Has anyone else found a convenient way to use CMMotionActivityManager with cycling also without having to