Ticket Created
over 3 years ago

Getting CIQ errors when changing settings on watch face

Over the past 2 days all of the watch faces I have created have been getting ciq error when the user changes the settings through their phone (i.e. changes background color).  No changes have been made to the watch face code recently and this does not happen in the simulator.

Parents
  • I found the source of the issue. I have a variable defined in the properties that is not also in the settings.  So when the settings are updated, the initial variable value from the properties was lost and and exception was thrown.

    What was in properties:

    <properties>

        <property id="BackgroundColor" type="number">0x000000</property>
        <property id="Theme" type="number">1</property>

    </properties>
    What was in settings (BackgroundColor not included in settings):
    <settings>
        <setting propertyKey="@Properties.Theme" title="@Strings.Theme">
            <settingConfig type="list">
                <listEntry value='0'>@Strings.Rust</listEntry>
                <listEntry value='1'>@Strings.Ocean</listEntry>
                <listEntry value='2'>@Strings.Desert</listEntry>
            </settingConfig>
        </setting>
       
    </settings>
Comment
  • I found the source of the issue. I have a variable defined in the properties that is not also in the settings.  So when the settings are updated, the initial variable value from the properties was lost and and exception was thrown.

    What was in properties:

    <properties>

        <property id="BackgroundColor" type="number">0x000000</property>
        <property id="Theme" type="number">1</property>

    </properties>
    What was in settings (BackgroundColor not included in settings):
    <settings>
        <setting propertyKey="@Properties.Theme" title="@Strings.Theme">
            <settingConfig type="list">
                <listEntry value='0'>@Strings.Rust</listEntry>
                <listEntry value='1'>@Strings.Ocean</listEntry>
                <listEntry value='2'>@Strings.Desert</listEntry>
            </settingConfig>
        </setting>
       
    </settings>
Children
No Data