Fitness Task

I am having trouble getting a Fitness Task to run - it seems the task is completely suspended when the iPhone lockscreen is activated.


Are the ResearchKit Active Tasks supposed to be able to run in the background ?


If not then are they of any practical use ?


Is there any point in having a fitness task with a timer, sound and vibration if the app becomes suspended once the users phones lock screen becomes active?


I have been looking into the source code and see that even the LocationManager is not configured to run in the background.


Am I being unrealistic to expect that these tasks would continue running in the background ?


Hopefully I just missed some basic configuration option somewhere!