config.widgetFamily is undefined

Does anyone know why I get a “undefined” as the config.widgetFamily?

That will only have a value when the script is being run on a widget.

The documentation says it should be defined as null rather than not being definee.

Possible values are: small, medium, large, extraLarge, accessoryRectangular, accessoryInline, accessoryCircular, and null. The value is null when the script is not running in a widget.

I guess the question then becomes which is wrong? The app behaviour or the documentation? Feels.like theformer to me given how explcit the documentation is on the point.

1 Like