title: How to reload timeline of iOS 14 widget from notification response?
body: <p>I'm making a home screen widget for iOS 14 using the new WidgetKit and I want my widget timeline to refresh when the user responds to a notification.</p>
  <p>This is what my code looks like currently:</p>
  <pre><code>func userNotificationCenter(_ center: UNUserNotificationCenter, didReceive response: UNNotificationResponse, withCompletionHandler completionHandler: @escaping () -&gt; Void) {
          
      if response.actionIdentifier == &quot;actionIdentifier&quot; {        
          print(&quot;notification response received&quot;)
          WidgetCenter.shared.reloadAllTimelines()
      }
  
      completionHandler()
  }
  </code></pre>
  <p>But my widget is not updated when the user responds to the notification. The print statement gets printed, so I know my app is receiving the response. The widget also gets refreshed when I call <code>reloadAllTimeLines()</code> anywhere else in my app, so I'm sure my widget extension is implemented correctly. But it's not updating in the above scenario.</p>
  <p>Is this a bug or am I doing something wrong? Or is there another way to reload a widget timeline after the user responds to a notification.</p>