title: IntentHandler can’t read UserDefaults but Timeline can
body: <p>I want to read UserDefaults when a user changes the configuration for a widget, so I created an app group and added the capabilty to my main app, the widget extension and the Intent extension.</p>
  <p>I can read and write fine between my app and the widget extension, however the UserDefaults always return <code>nil</code> in IntentHandler.swift, what could cause this?</p>
  <pre><code>// called from TimelineProvider
  func example() -&gt; String {
  
  let sharedDefaults = UserDefaults.init(suiteName: &quot;group.myname&quot;)
    let value = sharedDefaults!.value(forKey: &quot;myKey&quot;) as! String
  // value == “Hi this works!”
  }
  </code></pre>
  <p>But when I call <code>example()</code> from my IntentHandler value is <code>nil</code>. (It crashes)</p>