What is the correct way to add data to the lap summary? So far no data shows op in GCM (but the session data works).
What I am roughly doing:
- session = ActivityRecording.createSession({:name, :sport, :subsport});
- lapfield = session.createField(label, 3, FitContributor.DATA_TYPE_UINT32, {:mesgType => FitContributor.MESG_TYPE_LAP});
- session.start();
- lapfield.setdata(data);
- session.addLap();
- session.stop();
- lapfield.setdata(data);
- session.save();
And in my fitcontributions.xml:
<fitField id="3" displayInChart="false" sortOrder = "4" displayInActivityLaps="true" precision="0" dataLabel="@Strings.label" unitLabel="@Strings.unitlabel"/>
When I install the device app on my VA3 via beta upload, only the standard lap data but not my custom data is shown. My custom session data does appear in the activity summary.
What am I missing?
Kind regards, Maartje