I am working on watch app extension in which I am collecting the data from all sensors (Accelerometer, pedometer, gyroscope, barometer, location, heart rate etc) in maximum of 100HZ frequency, but I am facing problem with sensors stop giving data in following scenarios:
- If I drop my arm then sensor works for few seconds after that, sensors do not provide data until I raise my wrist again.
- Any point of time code execution stops so that we do not get data.
So I used CMSensorRecorder
class but only this class can not fulfil our requirement.
so what is the way to get sensor data independent of active/de-activate state of WKInterfaceController
?
I have to fetch data if app is in foreground state, either active state or de-active state.