WidgetKit getTimeline not called when you add widget on home screen.

I have widget added on home screen. Now when I uninstall my app, widget also gets removed.

Now when I install my app again, When I add widget to home screen , It always shows me cached data instead of latest data. getTimeline is not called due to which I am not able to get the updated data. This problem persists until you restart your device.

Once you restart your device everything seems to be working fine.

Same issue. Did you fix it?

WidgetKit getTimeline not called when you add widget on home screen.
 
 
Q