title: Cordova File write not working in ios
body: <p>I need to create a file and download it device directory.i have followed <a href="https://www.raymondcamden.com/2014/11/05/Cordova-Example-Writing-to-a-file" rel="nofollow noreferrer">this</a> tutorial to write file using cordova file plugin.I am getting success console but i cant find the file in device directory.But its perfectly working in android.Not working in ios device.</p>
  
  <p>Here is my code</p>
  
  <pre><code>window.resolveLocalFileSystemURL(cordova.file.documentsDirectory, function(dir) {
          console.log("got main dir",dir);
          dir.getFile("log.txt", {create:true}, function(file) {
              console.log("got the file", file);
              logOb = file;
               if(!logOb) return;
      var log = "App started" + " [" + (new Date()) + "]\n";
      console.log("going to log "+log);
      logOb.createWriter(function(fileWriter) {
  
          fileWriter.seek(fileWriter.length);
  
          var blob = new Blob([log], {type:'text/plain'});
          fileWriter.write(blob);
          console.log("success");
      }, false);        
          });
      });
  </code></pre>
  
  <p>Config file permissions</p>
  
  <pre><code> &lt;preference name="iosPersistentFileLocation" value="Documents" /&gt;
  &lt;preference name="iosPersistentFileLocation" value="Compatibility" /&gt;
  &lt;preference name="iosExtraFilesystems" value="library,library-nosync,documents,documents-nosync,cache,bundle,root" /&gt;
  
  &lt;preference name="iosPersistentFileLocation" value="Compatibility" /&gt;
    &lt;feature name="StatusBar"&gt;
      &lt;param name="ios-package" value="CDVStatusBar" onload="true"/&gt;
    &lt;/feature&gt;
    &lt;feature name="FileTransfer"&gt;
      &lt;param name="ios-package" value="CDVFileTransfer" /&gt;
  &lt;/feature&gt;
  &lt;feature name="File"&gt;
      &lt;param name="ios-package" value="CDVFile" /&gt;
  &lt;/feature&gt;
  </code></pre>
  
  <p>Can anyone helpme?</p>