title: cordova.file.dataDirectory is undefined
body: <p>after six hours of searching the web my hope is to find an answer here on SO.</p>
  
  <p>Platform: Windows,
  Ionic Framework, 
  Target Devices: Android/ iOS 7.1.2</p>
  
  <p>I want to write a file in my application folder, so I used the cordova plugin
  'cordova-plugin-file'.</p>
  
  <p>inside app.js run-method:</p>
  
  <pre><code>$ionicPlatform.ready(function () {
    if (cordova.file === undefined)
      console.log("FILE IS UNDEFINED");
  else
      console.log("IT WORKS! YEAH");
  });
  </code></pre>
  
  <p>On Android the file-object is available and I can access cordova.file.dataDirectory. In iOS the file object is always undefined.</p>
  
  <p>I'm logging the console via jsconsole.com</p>
  
  <p>IOS File (.IPA) was build via ionic build ios - service. I don't have a mac here.</p>
  
  <p>Any ideas?
  Thank you!! </p>