I was trying to test some of the new activity info specifically info.nameOfNextPoint. But I get the following when running
Could not find symbol nameOfNextPoint.
Symbol Not Found Error
in compute ("xxxxx")
Failed invoking <symbol>
function onUpdate(dc) {
var activityInfo = Activity.getActivityInfo();
if (activityInfo has :nameOfNextPoint) {
// the feature is supported
if (activityInfo.nameOfNextPoint != null) {
// there is an active course
}
else {
// no active course
}
}
else {
// the feature is not supported
}
}
function getInitialView() {
var deviceInfo = Sys.getDeviceInfo();
// assert(deviceInfo);
var monkeyVersion = null;
if (deviceInfo has :monkeyVersion) {
monkeyVersion = deviceInfo.monkeyVersion;
}
else {
monkeyVersion = [ 0, 0, 0 ];
}
if (monkeyVersion[0] < 1 || monkeyVersion[2] < 2 || monkeyVersion[3] < 10) {
return [ new UnsupportedFirmwareVersionView() ];
}
else {
return [ new MyAppView(), new MyAppDelegate() ];
}
}