SPORT_GENERIC not shown in GC app

Hi,

I realized that recorded activities of type "SPORT_GENERIC" and "SUB_SPORT_GENERIC" are not shown in the GC app. Is this on purpose?

Thanks

Lukas

  • Are you stopping and saving the activity correctly?  Are you sure the activity has been synced?  You see nothing in GC about the activity?  If you use a different SPORT_*, does that work?  What device?

    I took the recordSample from the SDK and changed it to use SPORT_GENERIC and SUB_SPORT_GENERIC. and it seems to work fine in both the web based GC as well as GCM, but the labels for the activity may not be what you expect

  • Thanks for your reply!

    My code works as expected with these pairs of SPORT_* and SUB_SPORT_*:

    Activity.SPORT_SWIMMING, Activity.SUB_SPORT_OPEN_WATER
    Activity.SPORT_CYCLING, Activity.SUB_SPORT_ROAD
    Activity.SPORT_RUNNING, Activity.SUB_SPORT_STREET

    I can't see any activities in GC when I am using these pairs:

    Activity.SPORT_GENERIC, Activity.SUB_SPORT_GENERIC

    Activity.SPORT_TRANSITION, Activity.SUB_SPORT_GENERIC

    function startRecording(phase, session) { 
        session = stopRecording(session);
        if (Toybox has :ActivityRecording) {                      
            if ((session == null) || (session.isRecording() == false)) {
                session = ActivityRecording.createSession({       
                        :name=>_phases[phase][0],       //activity parameters are stored in array "_phases"                      
                        :sport=>_phases[phase][1],               
                        :subSport=>_phases[phase][2]          
                });
                session.start();                             
            }
        } 
        return session; 
    }