I tried to use getGoalView(goalType) method in a watch face for FR235. It works on the simulator, but it doesn't on the real device.
I added a println() setence inside getGoalView() for debug. In the device there's no printout to the <APP>.txt, so it looks like the device is never executing the getGoalView() function.
Can you confirm if getGoalView(goalType) shall operate with Forerunner 235?
Below is the code I wrote for my watch face-
function getGoalView(goalType) {
Toybox.System.println("Goal triggered: " + goalType.toString());
switch (goalType) {
case Application.GOAL_TYPE_STEPS:
return [ new SportMasterLightGoalView() ];
break;
default:
return null;
}
}