Complete

WERETECH-10154

onWorkoutStepComplete() is not called after the last workout step

Hi! I just found a problem using onWorkoutStepComplete() by using it in my data field. It seems that when the workout/training is finished, onWorkoutStepComplete() is not called after the final step (when the training is finished). Has anybody else encountered this? I am using a Fenix 6. Thanks!

Parents
  • Still not working on Forerunner 265.

    A workaround would be to check in compute if Activity.getCurrentWorkoutStep() is null:

    var _ongoingWorkout = false;

    function compute(info as Activity.Info) {
        if (Activity.getCurrentWorkoutStep() != null) {
            _ongoingWorkout = true;
        } else if (_ongoingWorkout == true) {
            _ongoingWorkout = false;
            // workout has finished;
        }
    }
Comment
  • Still not working on Forerunner 265.

    A workaround would be to check in compute if Activity.getCurrentWorkoutStep() is null:

    var _ongoingWorkout = false;

    function compute(info as Activity.Info) {
        if (Activity.getCurrentWorkoutStep() != null) {
            _ongoingWorkout = true;
        } else if (_ongoingWorkout == true) {
            _ongoingWorkout = false;
            // workout has finished;
        }
    }
Children
No Data