I have an app using the ActivityRecording.session.createField() to create fit contribution fields.
This seems to be working. In the developer conference i saw a slide that i think indicated the fieldId must be zero based and sequential.
I see now that examples seem to do this also. I hope to review the videos and find the point where this statement was made when they are available.
In my app, i used sequential numbers for fieldId however they did not start at zero, instead about 50.
It all seems to work and the values are correctly displayed in Garmin Connect.
I have searched the documentation and cannot see anywhere that it indicates the need to be zero based, or even sequential.
Here is the documentation i was able to find.
ActivityRecording.session.createField -> fieldId — (Toybox.Lang.Number) — The unique Field Identifier for the Field
resources/fitContributions/fitField/id -> A numeric value from 0 to 255 used to refer to your field, No duplicates within an app are allowed
So questions:
1) is there a need to be zero based?
2) if i change the app now, causing my fit developer fields to have new ID, will it effect existing data in Garmin Connect recorded with old ID?
This would be a concern as many are currently using the app and have collected good data.
3) if the need to be zero based and sequential is real, then could the documentation be updated to indicate this