Motion sensor in background?

I am building SDK which needs to collect motion data in background atleast for 10 hours and upload it to server.


What are the best ways we need to consider to achive this by using background mode with less battery uitlization.

Motion sensor in background?
 
 
Q