WidgetKit API availability for posting from main app

Hi. I have a widget designed which basically has to authenticate the user. As a result, during the creation of widget, I am passing empty entries to the widget and passing a reload polity of never. This scenario now just shows redacted views.

I have seen the WWDC video Meet WidgetKit explaining that widget can awaken from the main app when. Guessing this to be providing timelines entries from main app, how do I do this?

There is no documentation explaining the scenario of communication between main app and widgets and neither are there any videos relating to this.

Also the video hints at scheduling updates at a certain time from extension, does this mean initial Widget extension or Intents Extension?

Any info on these queries would be very helpful as developers would love to have their app driving the widget and not the other way around.


You should look into:
Code Block
if #available(iOS 14.0, *) {
      WidgetCenter.shared.reloadAllTimelines()
}

WidgetKit API availability for posting from main app
 
 
Q