Problems for my watch face for vivoactive 3, fenix 6 pro and FR245 only

Hi, I have a watch face in the Garmin connect IQ shop : https://apps.garmin.com/en-US/apps/5e1ebcab-39e4-4686-966c-a8ed6a8ca42c and I get some report from  vivoactive 3, fenix 6 pro and FR245 users for problems. The Vivoactive 3 users say things like "Settings in the app is a blank white page, and it jams up the watch (the buttons and touch screen becomes non-responsive, and the backlight will not turn itself off, draining the battery). Only way to regain function is to do a forced restart and change to another watch face". The Fenix 6 users write that there's an error message appeared in Garmin Connect Android app stating "cannot communicate with watch" and for the FR245 they can't use the settings. All of those problems are not seen in the ERA page and they don't have any CIQ_LOG files in their devices after using it so I can't even get a hint for what causing the problem.

Everything works fine in the Eclipse simulator so it is super weird for me. I couldn't find any errors in my code that will cause problems. Also I can't understand exactly why there are problems with the Vivoactive 3 and fenix 6 pro. There is a floor indicator that I might messed up and caused the problem with the FR245 (that doesn't have floors indicator in it).

I add the full code for the watch face since I believe it might help https://drive.google.com/drive/folders/1kDoljrg9i3dGrfCX_tPcCf-jXLZCL9HV?usp=sharing

I am posting it here since I am clueless. Last time you helped me with the ERA errors but now the errors aren't in ERA at all and I don't have any of these devices to test.

Please help me understand what caused/may cause the problem.

Thank you in advance everyone.

  • Hey Jim, I've just seen there's a 4.0.6 version of the sdk. I am with the 4.0.5 til now, there's a chance it was what made the difference

  • Very doubtful.  It looks to be something in your app as no one else seems to be seeing it with their apps.

    In the SDK, there is a README file with every change log so you can see what's fixed and when.

  • Understand there are also many times when things are not because of your app, and can just be a misunderstanding by the user of how things work.  Like needing a data connection on a cell phone to change settings for example.

    Adding things in an app description can help, but may not.  Users often fail to read an app description, especially of they have to click "more" to see it all.

    You need to ask the user the right questions to understand what may be happening, as it could be your app or not.

  • Oh I see, thank you Jim. I have one more thing that I know for sure that is an error but I don't know what I have done wrong with it: I have ERA errors for F6 in those lines under onUpdate() function:

     var B = Application.Properties.getValue("BG");
            if (B == 0) { dc.setColor(Graphics.COLOR_BLACK, Graphics.COLOR_BLACK); }
            if (B == 1) { dc.setColor(Graphics.COLOR_WHITE, Graphics.COLOR_WHITE); }
            dc.clear();

    var SelectedColor;
    SelectedColor = Application.Properties.getValue("TextColor");
    

    I don't know what is causing this but I believe it is something with the first use errors. Is there any option to select an settings that will be used on the first time a new user uses the watch face and before he changes the settings in the app?

    Thank you in advance!

  • You need to say what the error is.  You'll get an unhandled exception if the "BG" key doesn't exist for example.

  • Oh I forgot to mention. The error for both errors is invalid value.

    Here are the settings for both properties.

    SelectedColor:

    <listEntry value="0x00aaff">@Strings.ColorBlue</listEntry>
    <listEntry value="0x00FFFF">@Strings.ColorTurquoise</listEntry>
    <listEntry value="0xffffff">@Strings.ColorWhite</listEntry>
    <listEntry value="0x55ff55">@Strings.ColorGreen</listEntry>
    <listEntry value="0x00FF00">@Strings.ColorLime</listEntry>
    <listEntry value="0x555500">@Strings.ColorOliveGreen</listEntry>
    <listEntry value="0xFF0000">@Strings.ColorRed</listEntry>
    <listEntry value="0xFF5500">@Strings.ColorOrange</listEntry>         
    <listEntry value="0xaaaaff">@Strings.ColorLightPurple</listEntry>
    <listEntry value="0x55aaaa">@Strings.ColorCadetBlue</listEntry>
    <listEntry value="0x005555">@Strings.ColorMosque</listEntry>
    <listEntry value="0x000000">@Strings.ColorBlack</listEntry>

    BG:

    <listEntry value="0">@Strings.DarkBG</listEntry>
    <listEntry value="1">@Strings.LightBG</listEntry>

    Also here's the properties for both:

        <property id="BG" type="number">0</property>
        <property id="TextColor" type="number">0x00aaff</property>

  • Hi, this is exactly what I was looking for thanks. But I didn't understand if I can use this without the function and use it in onUpdate() for example. Also I didn't understand the meaning of the return in this function so if you can simplify the way it works for me or how to use it, that will be really helpful to me.

  • Hi, this is exactly what I was looking for thanks. But I didn't understand if I can use this without the function and use it in onUpdate() for example. Also I didn't understand the meaning of the return in this function so if you can simplify the way it works for me or how to use it, that will be really helpful to me.

  • Hey , I read your reply and understood most of it. I removed the Background color from the layouts and removed the background.mc file and everything is working the same in the SIM. I didn't fully understand the most important part IMO which is the functions. I've read about the onSettingsChanged function and understand how it works but not how and where to use it in my code since the API documentation didn't said anything about where to use it. About the function to read config, I didn't know it was possible and it sounds like a great idea but I didn't understand if you meant to put there all the read configs of the settings so I just want to be sure.

    Thanks for the help and the suggestions!