I'm trying to record data to the .fit activity file. What I hoped would be simple has been surprisingly challenging. First I was unable to get anywhere using the samples posted online using the simulator & fitfileviewer.com/Monkey Graph to view the output. Then I tried side loading and running it on my device and suddenly I had data in my Fit files! Is there anything specific I need to do in the simulator to get the FitContributor data to be output. In the CIQ Simulator I'm using Simulation | Activity Data => Start, then wait for a while, Stop, then 'Save Fit Data'. (There are no warnings or error messages.)
When I view the data recorded by the side loaded program on my physical device in Monkey Graph, it's showing data from another developers CIQ field? My initial suspicion is that this is due to an overlap/clash in the fieldId values used in createField(). I used 0 and 1 for my two fields and am wondering if the other developer did the same leading to this behavior. The documentation for fieldId simply states 'The unique Field Identifier for the Field'. My assumption was that this is unique within the app, but if that is not the case then how can one ensure it is globally unique? Or is there perhaps some magic that happens when it gets uploaded to the CIQ store?
I'm using VScode... any thoughts or suggestions to help me figure this out, and/or get my simulation working would be much appreciated!