-1

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?

Mobiletainment
  • 22,201
  • 9
  • 82
  • 98
rjg
  • 105
  • 1
  • 12

1 Answers1

0

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 give it a try, check this answer..How to count steps using an Accelerometer?

Community
  • 1
  • 1
Obj-Swift
  • 2,802
  • 3
  • 29
  • 50
  • Is it possible to find out Whether the user is moving in vehicle or not using Accelerometer when M7 Processor is not available in iOS Devices (Older iPhones) ? – Ashok Feb 05 '15 at 11:35
  • logically yes. You need combination of GPS+accelerometer data. – Obj-Swift Feb 12 '15 at 16:00