title: Cordova Ionic Native File plugin - Where does it store the files in iOS?
body: <p>I been trying to save a file on iOS. Right now I been running through Xcode right to my phone.</p>
  
  <p>When I run the app it says that is saved successfully. But I don’t see any file when I use a file manager app like FileApp, FileManager, iCloud and the Apple crappy Files app.</p>
  
  <p>My question is that I heard from a web search that in order to save the file iOS creates a sandbox folder for the app.</p>
  
  <p>If I been saving it to this.file.documentDirectory, how can a user open it in let’s say Pages or Numbers apps? (You know Apple’s Word and Excel replacement for the uninitiated.)</p>
  
  <p>Here’s the code.</p>
  
  <pre><code> writeToIOS(opts : {
      fileName: string,
      text: any
    }) : Promise &lt; IResponse &lt; any &gt;&gt; {
      let response: IResponse &lt; boolean &gt; = {
        success: false,
        error: '',
        data: false
      };
      const options: IWriteOptions = {
        replace: true
      };
      return new Promise((resolve, reject) =&gt; {
        const path = this.file.documentsDirectory;
        const directory = 'Attendance Log';
        this
          .file
          .checkDir(path, directory)
          .then(res =&gt; {
            this
              .file
              .writeFile(path + directory, opts.fileName, opts.text, options)
              .then(res =&gt; {
                response = {
                  ...response,
                  success: true,
                  error: res,
                  data: res
                };
                resolve(response);
              })
              .catch(error =&gt; reject(error));
          })
          .catch(() =&gt; {
            this
              .file
              .createDir(path, directory, true)
              .then(directory =&gt; {
                this
                  .file
                  .writeFile(path + directory.name, opts.fileName, opts.text, options)
                  .then(res =&gt; {
                    response = {
                      ...response,
                      success: true,
                      error: res,
                      data: res
                    };
                    resolve(response);
                  })
                  .catch(error =&gt; reject(error));
              })
              .catch(error =&gt; reject(error));
          });
      });
    }
  </code></pre>
  
  <p>EDIT:</p>
  
  <p>What the client/user should do is be able to choose the file and open it in his/her favorite app. That being a File Manager app or a Writer or Spreadsheet app.</p>