I have implemented app widget option for my Android app which load the list of data from the app. However in Pixel 4 (Android 12) device it didn't load the data or is blank for the first time when I add the widget. After re-launching the app, then the list is appearing in the widget. Another thing is widget becomes blank when re-sized as well as re-located or change the widget screen.
On other Android (Android 12 or other versions) devices this works fine.
Assign data to the widget only after making sure that you have received the data from the server. else show a proper error.
like below: