title: iOS how to access private file for sharing extension
body: <p>I have been trying to access a file with my share extension, if the file is from photos app, I can access it, the path for the file is:</p>
  
  <blockquote>
    <blockquote>
      <blockquote>
        <p>file:///var/mobile/Media/PhotoData/OutgoingTemp/11485686-0D4A-4637-AA50-B14D83E18B01/RenderedPhoto/IMG_4807.JPG</p>
      </blockquote>
    </blockquote>
  </blockquote>
  
  <p>but when I try to access a file on the "private" path, I cannot access it, like an MS word file:</p>
  
  <blockquote>
    <blockquote>
      <blockquote>
        <p>file:///private/var/mobile/Containers/Data/Application/196D7E75-87B6-4C69-B97A-74E58DF4AD65/tmp/ShareAttachments/%7BE73A233D-D10E-814D-AEB1-0C8C8AC9BFAA%7D/Document%20(7).docx</p>
      </blockquote>
    </blockquote>
  </blockquote>
  
  <p>So my question is, how to access the file? apps like whatsApp or slack can have access to the file and attach it...</p>
  
  <p>How to access this file? are they using "app groups"? how do they get the id for the app group? or how to access the file?</p>