I write a FIT Summary string at the end of an activity in my Data Field.
I did have it in the onStop() interrupt, and it worked well. But an activity can have multiple stop/start events. So this was writting the summary string multiple times in the FIT file. I think only the last one was rendered in the Garmin Connect activity summary.
But I realized that onReset() was the better place to put this code. In the simulator, this runs when you SAVE or DISCARD an activity. Perfect. It writes once when you are really done with the activity.
But in a REAL device it doesn't actually get written or show up in Garmin Connect.
My theory is that a device buffers the write to be flushed sometime later. But by then the FIT file is closed.
Anyway, this is at least a simulator bug since it doesn't emulate a real device behavior. And/or a H/W bug (it should complete the write following the onReset() interrupt. Or, I'm not thinking about this correctly.
Easy fix - put that FIT write back into the onStop() function.
If this is a bug, I'll post in the bug forum - just not sure it is yet. Thoughts?