title: Add a native Plugin to Cordova 2.9.0 xcode
body: <p>Aim is to have a "View PDF" button which allows the user to view the PDF on an iPad.</p>
  
  <p>Here is the <a href="http://www.tricedesigns.com/2012/08/15/open-with-in-ios-phonegap-apps/" rel="nofollow">plugin</a> I want to add to Cordova (Phonegap).</p>
  
  <p><a href="https://github.com/triceam/phonegap-plugins/commit/83f33d4655751290dd663301a02e50459f06b13f" rel="nofollow">This</a> is the code on GitHub.</p>
  
  <p>So far I have updated my html file to run the scripts and same function on button click (All this is in the body tag like his example):</p>
  
  <pre><code>&lt;button id="externalPdf" onclick="app.openExternalDoc();"&gt;Open pdf&lt;/button&gt;
  &lt;script type="text/javascript" src="../assets/js/index.js"&gt;&lt;/script&gt;
  &lt;script type="text/javascript" src="../assets/js/ExternalFileUtil.js"&gt;&lt;/script&gt;
  &lt;script type="text/javascript"&gt;
      console.log("initialize app");
      app.initialize();
  &lt;/script&gt;
  </code></pre>
  
  <p>I have copied the Index.js and ExternalFileUtil.js into the project.</p>
  
  <p>I have linked the 2 Objective-C file to the plugin folder (Not sure if this is correct)</p>
  
  <p>And I have edited the config.xml file to run the plugin:</p>
  
  <pre><code>&lt;plugins&gt;
      &lt;plugin name="ExternalFileUtil" value="CDVExternalFileUtil"/&gt;
  &lt;/plugins&gt;
  </code></pre>
  
  <p>It still doesn't seem to work though, any ideas?</p>
  
  <p>Thanks</p>