Solved: Android Widgets become unresponsive in MIUI

In my Android phone running MIUI, I run into the issue of widgets turning unresponsive quite often. For example, a Microsoft ToDo widget might display a blank white page without showing tasks, or a calendar widgets will show a blank page without the events. Any clicks on the widget will not work. But when you open the app or recreate the widget it will work for sometime before going unresponsive again.

The main reason for this issue is that the application is closed in the background due to the intensive battery optimization in MIUI. You can exempt an app from being closed automatically to preserve battery.
  1. Open Settings app.
  2. Go to Apps -> Manage Apps.
  3. Open the App Info for the particular app you want to optimize.
  4. Click on Battery Saver option.
  5. Select No restrictions.

If you are using a third party launcher, exempting your launcher from Battery Optimization might also help.