How to write user selected pace units in the fit contributions?

Former Member
Former Member
In the Resources XML file, is there a way to have a switch statement, or some way to control what unit label displays based on the watch settings? For example, I want to show Overall Pace, but I have it calculated and showing in the app as minutes/mile and minutes/km. On Garmin Connect, I want to be able to display the correct unit for the watch settings. Attached are an example of the strings I'm using for the fit contributions, and then some of the fit fields.
  • You can't change the label and here's why.

    The xml with the fitcontrib data is actually used to generate a file that's included in the .iq when you send it to the store. Then, when Garmin Connect wants to display your custom data, it actually gets the info on how to do that from the app store.

    You would need to have the data as two separate fields and display both.