I am a bit stuck with displaying an average value in the summary. I am using MESG_TYPE_SESSION for this as shown in the code below.
The recording for the data works fine with MESG_TYPE_RECORD.
Simulator does not create the MESG_TYPE_SESSION fields. I also tried it on my watch: Does not work neither - there is nothing displayed in the summary but graphs from recording are nice.
Unfortunately, I could not find an answer in the forums. Do you have any idea?
// In 'class AppDelegate extends WatchUi.BehaviorDelegate' calling this 'onSelect()' if '(session != null) && (session.isRecording() != false)' var fieldStrideLengthAvg = session.createField("stride_length_avg", 3, FitContributor.DATA_TYPE_FLOAT, { :mesgType=>FitContributor.MESG_TYPE_SESSION, :units=>"m" }); fieldStrideLengthAvg.setData(avgStrideLength); session.stop(); session.save(); // In fitContributions.xml: <fitField id="3" sortOrder="4" precision="2" chartTitle="@Strings.chart_title_stride_length_avg" dataLabel="@Strings.data_label_stride_length_avg" unitLabel="@Strings.unit_label_stride_length_avg" displayInActivityLaps="true" displayInChart="true" displayInActivitySummary="true" fillColor="#0E73AD" />