When running my iOS 12+ App on iOS 14 the (long existing) Today Widget does not work any more. Instead of the widget content only Unable to load
is shown.
The very same code runs without any problem on iOS 13 and below.
Note: This is NOT about the new Homescreen Widgets introduced with iOS 14. They work fine. This is about the old today widgets.
I found several existing threads and other resources about the Unable to load
issue. However, they are all older and not related to iOS 14. In pretty much all cases the problem was, that the widget crashed and could thus not be loaded.
I tried to debug the widget extension by running it directly from Xcode: Selecting the Widget target instead of the App target and run the project. This works fine on iOS 13 and below. The widgets becomes visible and works as expected. Additionally I can use breakpoints, etc. to check if there is any problem.
On iOS 14 however, nothing happens when I start debugging, expect that Xcode shows Running com.apple.springboard on iPhone XYZ
. When I switch to the today screen manually the widget is shows as Unable to load
again.
Since debugging does not work I added a method which logs messages to a file in the apps group folder. While this also works fine on iOS 13 and below, it does nothing on iOS 14.
I am working with Xcode 12.1 and as far as I can tell both iOS 14 and 14.1 are affected.
Is seems that the Widget does not run at all on iOS 14.
Any idea what the problem might be? Any idea how find the source of the issue without debugging or logging?
Open the Settings app > Go to General > Background App Refresh. Turn it on. This would probably fix IOS 14 widget not updating the problem.
Restart Your Device If the internet is working fine and you're still facing trouble with your widgets, then you can try restarting your Android to see if it helps. Often, issues such as widgets not updating are easily resolved by merely rebooting your Android device.
Widgets not working or updating on iPhone might be due to outdated iOS software. Head to Settings and select General. Go to Software Update and install the latest available iOS build.
No idea about the cause but I've just updated to 14.2 and none of the non-Apple widgets will run (all show "Unable to load" or blank black widget. And most of those apps have widgets updated for iOS 14.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With