Heart Rate not in Activity

Hey all,

I have developed an app to record activities during a football match.

I want to save the heart rates of the activity too, but when a chest belt is connected via ANT (+) the heart rate will neither be saved nor shown. The simulator shows the current heart rate (var hr is shown on display).

Is the way I do it the right way or do I need to do it another way?
function getActivity() {
var info = Act.getActivityInfo();
if (info != null) {
hr = info.currentHeartRate != null ? info.currentHeartRate : 0;
distance = info.elapsedDistance != null ? info.elapsedDistance : 0;
}
}


Thanks for your help
Andy