Hello Garmin community,
I am currently building a scorekeeping app that allows you to record your game as an activity. I am adding as many sports as I can that involve some scoring system.
I am currently, however unable to get the sport type Ultimate Disc to register in Garmin connect or on the watch.
My code currently is very simple, just records a basic activity profile with no extra data (I am working on that to add later).
I currently am using a switch block to set the activity type. A section of my code is provided below.
case "Ultimate Disc":
activity_profile = Activity.SPORT_TEAM_SPORT;
sub_activity_profile = Activity.SUB_SPORT_ULTIMATE;
break;
...
if (Toybox has :ActivityRecording) {
startSound();
if (activitySession == null) {
activitySession = ActivityRecording.createSession({
:name => "ScoreTrak",
:sport => activity_profile,
:subSport => sub_activity_profile
});
activitySession.start();
isRecording = true;
recordingState = 2;
}
}
All of the other activity profiles work fine. Ultimate Disc is the only major sport (besides racket sports) that I use that is not a main sport.
When I run my app and record an activity, the recording works fine, but it just shows up as a 'team sport' in Garmin Connect and a generic activity on my watch.
Does anyone know what the right configuration is for setting the activity type for Ultimate Disc?
Thanks!