Widget is completely black on some devices

On most devices, my widget works fine. However, on some devices it gets stuck in a mode where it is solid black with no content. Even the preview snapshot displayed in the widget installer is black.

Deleting and reinstalling the app and widget does not fix this.

This is a simple widget that displays an image included in the app, with a fallback to a bundle asset if that image cannot be found. No networking is involved.

I am wondering if iOS is somehow caching a "blank" widget, although I am able to break on widget code and verify that getSnapshot() is getting called by the installer.

Accepted Reply

This was due to an iOS bug which turns widgets black if image is "too large." See https://developer.apple.com/forums/thread/710745

Replies

This was due to an iOS bug which turns widgets black if image is "too large." See https://developer.apple.com/forums/thread/710745