I am getting a "Key does not exist in Application Properties" error (I'm printing the caught exception error message on the screen) on my Vivoactive 4 device after saving settings for it in Connect IQ on iOS for a beta widget that I am developing. I am retrieving these properties via Properties.getValue.
The property keys are set in resources/properties.xml with default values of "0", and in resources-round-260x260/properties.xml with values of "20", "16", etc.
<properties> <property id="PropArcThickness" type="number">0</property> <property id="PropArcCircleRadius" type="number">0</property> <property id="PropHoursMinutes" type="number">0</property> </properties>
I have a boolean setting for toggling a feature on/off. Whenever I toggle this in Settings in the Connect IQ app on iOS, press "Save" (saved successfully), and pop open the widget on my device I am seeing the error mentioned above.
What could be causing the property keys to be "erased", as in no longer exist from the widgets point of view?
When I upload a fresh beta version to the store, and sync it to my device via the Connect app, and open the widget after syncing (without changing settings) it loads just fine. So I'm thinking something is happening when the Connect IQ app is syncing settings with my device.