How to enable RunningDynamics data

Hi all,

I want to collect data from RunningDynamics and I have this code:

class rdl extends AntPlus.RunningDynamicsListener {
var tVO = 0d;

function initialize(someVar) {
RunningDynamicsListener.initialize();
}

function onRunningDynamicsUpdate(data) {
tVO += data.verticalOscillation;
}
}
.
.
.
.
oRDL = new rdl(oneVar);
oRDyn = new AntPlus.RunningDynamics(oRDL);


and onRunningDynamicsUpdate event never gets called. I have enabled permissions for ANT and sensor history in my manifest.xml.

It's an app that I use in running activity and I can see Running Dynamics on my watch display, but nothing about my app. I don´t know if I need to enable something more, like with Sensors.

Many thanks,