Is it possible to detect the user's moving activity on the background?

We are Develop fitness app. I need user step in Background update.


I use Below code for background update :


__block UIBackgroundTaskIdentifier background_task;

background_task = [[UIApplication sharedApplication] beginBackgroundTaskWithExpirationHandler:^ {

//This code block is execute when the application’s

//remaining background time reaches ZERO.

}];


after 5 Minutes app automatically terminatd. is there any way to keep application in background for long time?.