Name of a recorded session

Hello everyone,in an app that I created I used the following code:

if(session == null ){
session = Record.createSession({:name=>"Example", :sport=>Record.SPORT_TRAINING , :subSport=>Record.SUB_SPORT_CARDIO_TRAINING});
}


..now,the session is created and saved correctly,but I assumed that the name been saved would be "Example",instead it's saved just like "Cardio Fitness".
I make some mistake in the syntax and there is a way to save it with the name that I want,or it's just like that?
Thanks in advance
  • You cannot control the name of the activity as it appears in Garmin Connect. The activity name will be set by Garmin Connect when it is uploaded. The name used will be determined by the Activity Names setting. Based on the value of that setting, the sport and subSport may influence the name that you see. If the sport/subSport type are not available in Garmin Connect, it may use something else.

    Travis
  • thank you for the reply....so the "name=>"Example"" what is used for?
  • I think it's written in the .fit file some place, but not used by GC.
  • Former Member
    Former Member over 8 years ago
    Technically it is the name of the "profile" that you are creating for the FIT recording. For example, the default running profile on most of our devices is configured with sport=SPORT_RUNNING, subsport=SUB_SPORT_GENERIC, name="Run".

    If the profiles used by ConnectIQ apps weren't just temporary things, and showed up in the profile list, this name is what would show up. It is required by the FIT protocol, and is written to the file, and if you created your own service that consumed the files, you could access it. As things stand, I don't think it is used by Garmin Connect for anything.
  • Thank you very much for the clear and detailed reply...ok now I at least know that was not my fault but the normal behavior.