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

  • TL;DR I don't see any difference between SDK 7.4.3 and SDK 8.1.0, but maybe I'm not testing the same way you are.

    > It's known that *widget* builds targeting Instinct 2 (Fenix 6?) like devices run in "glance mode"

    Does your app override AppBase.getGlanceView()?

    I tested Instinct 2 (which is a CIQ 3 device). In the sim, if the app overrides AppBase.getGlanceView(), then it was launched as a glance. This worked for me in both SDK 7.4.3 and SDK 8.1.0. If the app does not override getGlanceView, it is launched "normally" (as a full-screen widget), regardless of whether the real device supports "normal mode" or not.

    Same results for fr945 and fenix6, in both SDK 7.4.3 and 8.1.0.

    Note that *some* CIQ 3 devices, such as fr945 and fenix6, have the ability to switch between glance and normal mode (in *this* case, widget mode) via Settings > Glance Launch Mode in the simulator. (And they may have had a way to do this on the real device, although it's also possible that it was removed with a firmware update so that glances would always be used).

    Yes, all of this is regardless of the fact that on a real CIQ 3 device, if you build a widget that doesn't override getGlanceView() and run it in glance mode, the system will provide a default glance view.

    Note that for CIQ 4+ devices, there is really no such thing as a widget app type anymore. All apps with the "widget" type in manifest.xml are compiled as "watch-app" (device app) for these devices, and in this case, you *must* override getGlanceView() if you want the user to be able to launch it as a glance. (I mention this because there are popular old widgets that were ported to newer devices, but the dev never implemented getGlanceView so the app can't be launched as a "widget"/glance anymore).