title: Sharing a big String between an app and its extension
body: <p>I have a text file of 5MB and I need to send from my application to a content blocker extension. I tried a simple group sharing but it's not working, ehre is the code.</p>
  
  <p>In my app:</p>
  
  <pre><code>listText = NSString(data: content, encoding: NSUTF8StringEncoding)! as String
  print("\(list): \(listText.characters.count)") // It works
  if let userDefaults = NSUserDefaults(suiteName: "group.AG.App") {
      print("In the group") // It works
      userDefaults.setObject(listText, forKey:"test")
      userDefaults.synchronize()
  }
  </code></pre>
  
  <p>In my extension:</p>
  
  <pre><code>if let userDefaults = NSUserDefaults(suiteName: "group.AG.App") {
      // Things happen here
      if let test = userDefaults.stringForKey("test") {
          // Nothing happens here
      }
  }
  </code></pre>
  
  <p>How would you do to share a big amount of text between an app and its extension?</p>