I got it working, with quite a few limits, in the simulator, but it does not work in the app that I uploaded to the store.
Limitations I encountered:
- field data for MESG_TYPE_SESSION and MESG_TYPE_LAP can only be float; string always gives the error 'string too long for allocated space', other types show #VALUE# in the resulting FIT file on Monkeygraph
- storing data for MESG_TYPE_RECORD and for MESG_TYPE_SESSION works well, for MESG_TYPE_LAP it shows a new lap for every datafield, and each lap has the data for the record
- as I mentioned, it works in Monkeygraph, but I can not see the added fields in Garmin Connect, not on the web and not in the app.
I'd be grateful if someone could share a working example, that uses all message types and data types; if not, I will extract the relevant code from my app and share that.