I'm writing a widget. The widget shows the results of some web API calls.
The widget is working well on fenix 5 in the simulator and on fenix 6 with glance mode turned off.
When I enable glance mode, my app initialize gets called and completes, and then I get a fatal error:
Error: Illegal Access (Out of Bounds)
Details: Failed invoking <symbol>
Stack:
- onWebData() at /Users/x/dev/garmin/api-track/source/WebApi.mc:78 0x100017fe
The line of code the stack errors on is just the last line of code in that file and doesn't seem to be relevant.
Can anyone suggest likely mistakes I should look for, or how I debug the issue further?
Thanks