apple-m7

Can I require an iPhone 5S for my app?

删除回忆录丶 提交于 2019-11-30 17:31:34
I'm writing an app which requires the M7 Motion co-processor chip in the iPhone 5S. Since this chip isn't in any other iPhone, the app will only function properly on an iPhone 5S. Is there any way to require that a user has an iPhone 5S before downloading my app? Sort of like how you can make an app iPad specific? I am looking for a way to select the iPhone hardware requirement. Not the iOS version requirement. I spoke with Apple and the correct answer is at this time NO. You can not specify via Required device capabilities or otherwise that an iPhone 5S is required for a specific app. You can

Can I require an iPhone 5S for my app?

柔情痞子 提交于 2019-11-30 16:50:20
问题 I'm writing an app which requires the M7 Motion co-processor chip in the iPhone 5S. Since this chip isn't in any other iPhone, the app will only function properly on an iPhone 5S. Is there any way to require that a user has an iPhone 5S before downloading my app? Sort of like how you can make an app iPad specific? I am looking for a way to select the iPhone hardware requirement. Not the iOS version requirement. 回答1: I spoke with Apple and the correct answer is at this time NO. You can not

Detecting if a user is moving in a car

安稳与你 提交于 2019-11-27 17:24:11
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 driving or riding in a car I first thought of these two checks, however neither can really determine if

CoreMotion updates in background state

半腔热情 提交于 2019-11-27 10:30:01
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 this functionality is that if I turn off GPS updates while my app is in the background I stop