Acknowledged
CIQQA-3059

Bug report: with Connect IQ SDK 8.1.0, widget builds for Instinct 2 like devices are no longer launched in glance mode in Simulator

It's known that *widget* builds targeting Instinct 2 (Fenix 6?) like devices run in "glance mode" (https://developer.garmin.com/connect-iq/core-topics/glances/). With Connect IQ SDK 8.1.0 it's no longer the case, at least with my project (https://github.com/grigorye/Handsfree), when running in Simulator. They're launched as a regular app instead. Switching back to SDK to 7.4.3 makes the widget builds for Instinct 2 run in glance mode again.

This seem to affect only Simulator: (widget) builds for devices run as expected in glance mode on real Instinct 2 devices, for both versions of SDK.

Regards,
Grigorii

  • Maybe originally I wasn't closing the simulator after switching SDKs so I was testing the wrong simulator? That could be it because now I always see the problem with SDK 8.1.0. I only see the problem with instinct2* devices though - look like it might affect any device where simulator.json has '"glanceLaunchMenuDisabled": true'.  Changing glanceLaunchMenuDisabled to false (or deleting the key/value altogether) does *not* fix the problem in the 8.1 sim, although it does allow Glance Mode to be changed in the 7.4.3 sim for instinct2.

  • fr945 and fenix6 seem to work ok, so I do think this has something to do with the fact that the Glance Mode setting is available in the sim for those devices (and it works), but it isn't available for instinct2.

  • Having said that, I did find a bug, but at first glance (see what I did there) it seems to affect both (or all) SDKs equally.

    The simulator will remember the last value of "Glance Launch Mode", even when running on a device which does not support changing Glance Launch Mode (oops). This means that if you run the app for a different device like fr945, change Glance Launch Mode to Normal, then run the app for instinct2, the sim will continue to use Normal mode and you don't have any way to change to Glance, except to run for a different device and change the setting that way. e.g. You may have to run the widget for fr945, and explicitly toggle the setting from Glance to Normal and back to Glance again.

    iirc instinct2 has a similar issue with the Data Fields > Layout option, as its available values do not include the default value used by the sim, so when you initially run your data field, it uses an invalid layout.

    With further testing, I've found that when I can get 7.4.3 to use glance mode for instinct2 (which is not all the time, as mentioned above), switching to SDK 8.1.0 *will* cause instinct2 to use normal mode. And now I can't get instinct2 to use glance mode T_T.

  • > I'm aware of Glance Launch mode,
    > ...
    > (at least it's always disabled for me for widget builds for Instinct 2)

    I also found it's disabled for instinct 2, but it is enabled for fenix6 and fr945 (both CIQ 3 devices which have real widgets, and for which device apps cannot have glances).

    This discrepancy could reflect differences on the real devices. e.g. perhaps Instinct2 doesn't have a real user setting to switch from glances to old widgets, but fenix6 and fr945 have (or had) that setting.

    Note that fr945lte (CIQ 3) launched with the ability to turn off glance mode, but when it got a firmware update to make it more like some of the CIQ 4 devices, that setting was removed.

    > It's clearly reproducible by switching SDKs, so that's at least something...

    I can't reproduce it though :/

    Not sure what I'm doing differently.

  • Thanks for checking/letting me know the details! Yes, it overrides getGlanceView()/I feel like do understand the differences. Yeah, I'm aware of Glance Launch mode, but I feel like it works only for *app* builds for Fenix 7 like devices (at least it's always disabled for me for widget builds for Instinct 2). Will double-check it/look for other conditions... It's clearly reproducible by switching SDKs, so that's at least something...