I know how to find out if user is moving in a vehicle in the following cases:
1. CLLocationManager:
In this case, based on the speed in locationManager:didUpdateLocations
method i can find out if user is moving in vehicle.
2. If M7 Is available --> CMMotionActivityManager:
In this case, i can make use of CMMotionActivity
in startActivityUpdatesToQueue:withHandler
method and find out if user is moving in vehicle.
I'm stuck in the case where iOS Device doesn't have M7 Processor.
I can use CLLocationManager
in this case, but it is draining device battery, So I'm not going to choose this option to achieve the functionality.
Please provide me guidelines to find out if user is moving in a vehicle If M7 Is not available.
I have referred the following links, But They didn't help me.
- Detecting if a user is moving in a car
- Utilizing the M7 chip in the iPhone5S
- Use similar technology as CMMotionActivity on older iPhones
Thanks in Advance.