title: File plugin not working with PhoneGap Build
body: <p>I've been battling with this for a while. I haven't found many other people with this problem, and the ones I did find, didn't have the File plugin installed.</p>
  
  <p>In my case, the File plugin is installed as a dependency of File-Transfer.</p>
  
  <p><strong>Problem:</strong> When I build and install the application directly from my PC to my Android device, everything works fine, but when it's built with PhoneGap Build, it doesn't work.</p>
  
  <p><strong>What happens:</strong> In app.initialize(), I call cordova.file.applicationStorageDirectory:</p>
  
  <pre><code>var app = {
      initialize: function() {
          this.bindEvents();
      },
  
      bindEvents: function() {
          document.addEventListener("deviceready", this.onDeviceReady, false);
      },
  
      onDeviceReady: function() {
          initApp();
          alert(1);
          alert(cordova.file.applicationStorageDirectory);
          alert(2);
      }
  };
  </code></pre>
  
  <p>When I build and install locally, all three alerts are shown, and the directory path is correct, but when it's built by PhoneGap Build <code>alert(1);</code> is shown, but the second two calls aren't. This leads me to believe that cordova.file is undefined.</p>
  
  <p>I've tried using PhoneGap Build's remote debugging tool, but nothing seems to print in the console, despite the documentation saying it should.</p>
  
  <p>Here are the plugins installed:
  <img src="https://i.stack.imgur.com/tGT70.png" alt="enter image description here"></p>
  
  <p>And here is my config.xml:</p>
  
  <pre><code>&lt;?xml version='1.0' encoding='utf-8'?&gt;
  
  &lt;widget xmlns     = "http://www.w3.org/ns/widgets"
          xmlns:gap = "http://phonegap.com/ns/1.0"
          id        = "id-removed"
          version   = "0.0.0"&gt;
  
      &lt;preference name="phonegap-version" value="3.3.0" /&gt;
  
      &lt;name&gt;Name removed&lt;/name&gt;
  
      &lt;description&gt;
          Description removed.
      &lt;/description&gt;
  
      &lt;author email="email removed" href="removed"&gt;
          Removed
      &lt;/author&gt;
  
      &lt;content src="index.html" /&gt;
  
      &lt;icon src="icon.png" /&gt;
  
      &lt;preference name="Orientation" value="portrait" /&gt;
  
      &lt;access origin="*" /&gt;
  
      &lt;gap:plugin name="org.apache.cordova.camera" version="0.2.9"/&gt;
      &lt;gap:plugin name="org.apache.cordova.device-motion" version="0.2.6"/&gt;
      &lt;gap:plugin name="org.apache.cordova.device-orientation" version="0.3.5"/&gt;
      &lt;gap:plugin name="org.apache.cordova.file-transfer" version="0.4.2"/&gt;
      &lt;gap:plugin name="org.apache.cordova.geolocation" version="0.3.7"/&gt;
      &lt;gap:plugin name="org.apache.cordova.globalization" version="0.2.6"/&gt;
      &lt;gap:plugin name="org.apache.cordova.inappbrowser" version="0.2.4"/&gt;
      &lt;gap:plugin name="org.apache.cordova.network-information" version="0.2.7"/&gt;
      &lt;gap:plugin name="de.appplant.cordova.plugin.local-notification" version="0.7.4"/&gt;
  &lt;/widget&gt;
  </code></pre>
  
  <p>Any help is appreciated.</p>