CMSensorRecorder and WCSession

I am recording accelerometer data using CMSensorRecorder and then trying to retrieve the data in background refresh. However, I am getting the following error:

"[Connection] Error on message reply (sync) for kCLConnectionMessageSensorRecorderGetMetasByDateRange (Connection interrupted)"

Thanks in advance.

CMSensorRecorder and WCSession
 
 
Q