Vivoactive 4 apps

Former Member
Former Member

I'm trying port my old applications from Vivoactive HR to my new Vivoactiv 4. I have problems collecting information from Activity. I'm using Activ.getActivityInfo to collect data, but it seems like either currentSpeed or elapsedDistanse are updating. I'm also reading the Sensor..getInfo() for the heartrate and thats work fine. I'm using the code:

var actInfo = Activity.getActivityInfo();
var infoS = Sensor.getInfo();

var currentHeartBeat = infoS.heartRate;

var currentSpeed = actInfo.currentSpeed;
var currentDist = actInfo.elapsedDistance;

It seems like it returning "null".