Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Today-Widget "Unable to load" error

Tags:

From time to time widget crashing with "unable to load" error. Is anyone know how to fix it? Widget haven't requests to server or smth else.

enter image description here

like image 206
Ildar.Z Avatar asked Jan 18 '17 13:01

Ildar.Z


People also ask

Why is my phone widget not working?

Try clearing the cache first and see if it fixes the issue. If not, clear the app data as well. Launch and set up the app with your login credentials. You may need to re-add the widget if you cleared the app's data.

Why is my widget not updating?

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.


2 Answers

Unable to load in today extension mostly appears when:

  1. You extension crash due to some reason
  2. It takes more memory than what is provided by the system. (Memory Limit : max 16MB approx.)

Debug your app extension to find out the exact problem.

Refer to Xcode's Debug Gauge for Memory and CPU utilization.

Edit:

Debugging today extension

You can debug your extension the same way you debug your main project. Just select that particular target scheme in your Xcode and run the project.

enter image description here

Now try using the breakpoints and other print statements in the extension’s code and you are good to go. Happy coding..😊

like image 116
PGDev Avatar answered Oct 09 '22 13:10

PGDev


REBOOT the device.
This saved me.

like image 39
orli Avatar answered Oct 09 '22 13:10

orli