title: How to use cordova-filechooser to open file on Android
body: <p>I'm develoing an Android app with Angular and Cordova, and I need to open a file with an user interaction, so I installed this Cordova plugin <a href="https://github.com/don/cordova-filechooser" rel="nofollow noreferrer">https://github.com/don/cordova-filechooser</a></p>
  
  <pre class="lang-sh prettyprint-override"><code>cordova plugin add https://github.com/don/cordova-filechooser.git --save
  yarn install
  </code></pre>
  
  <p>In order to use plugin i write this code</p>
  
  <pre class="lang-js prettyprint-override"><code>declare var fileChooser: any;
  ...
  fileChooser.open(function(uri) {
      alert('File is: ' + uri);
  });
  </code></pre>
  
  <p>but the console says 'fileChooser is not defined'.</p>
  
  <p>What is the correct way to use this plugin?</p>
  
  <p>Cordova: 9.0.0 - Node: 10.15.0 - Angular: 7.0.4</p>
  
  <p>Thank you</p>