Maybe a dumb question:
I'm making a widget with a glance view.
In the CIQ Simulator, how do I get to the glance view so I can see what I've done?
When I launch the Simulator, it goes right to the app, so I can't see the glance.
Maybe a dumb question:
I'm making a widget with a glance view.
In the CIQ Simulator, how do I get to the glance view so I can see what I've done?
When I launch the Simulator, it goes right to the app, so I can't see the glance.
In the CIQ Simulator under Settings there is a "Glance Launch Mode" option that should default to launching in glance mode. It is only available if in your AppBase class if you override getGlanceView()
Does the device you're trying in the sim support glances? You should be using the (:glance) annotation, and if you on device without glances, you see a message like this when compiling..
WARNING: fenix5plus: C:\Users\James\workspace-prod\BLETemp\source\BLETempPM.mc:41: Glance applications are not supported for app type 'widget' on device 'fenix5plus' with minimum API Level 3.3.3. The (:glance) annotation will be ignored.
On devices that do support glances, under settings>glance launch mode you can pick if you see the glance view or not
Bugs were reported with the sim's glance mode and devices like Instinct 2 and Fenix 6, a few months ago. The issue is that widgets are not launched in glance mode, even though the sim is set to "launch in glance mode".
I have no idea if the bugs have been resolved yet.
forums.garmin.com/.../issues-with-sdk-8-1-x-and-glance-on-fenix-6
In the CIQ Simulator under Settings there is a "Glance Launch Mode" option that should default to launching in glance mode. It is only available if in your AppBase class if you override getGlanceView()
Note that on a real CIQ 3 (not CIQ 4+) device that supports glances, any widget that doesn't override getGlanceView() will be provided a default glance view. (This is because widgets still exist as a distinct app type in CIQ 3, which means that your widget app *has* to be available from the widget/glance loop and not the regular activity/app list)
However, it's not a good idea to rely on this behaviour, as CIQ 4+ devices will *not* provide a default glance view. For these devices, widgets are actually compiled as device apps, and the only way to make an app available from the glance list is to override getGlanceView().
Note that the docs for getGlanceView() claim that a default glance view will be provided if you return null from getGlanceView() (which is distinct from simply not overriding it), but this is false:
- in the sim it does nothing - the behaviour is as if you hadn't overridden getGlanceView()
- on a real CIQ 4+ device, a broken default glance view is provided that consists only of the launcher icon and not the app name. (The working default glance view on CIQ 3 devices has both the icon and the name)