title: Ionic 3 : How to use cordova plugins
body: <p>I'm trying to use this cordova plugin <a href="https://github.com/litehelpers/Cordova-sqlcipher-adapter" rel="noreferrer">https://github.com/litehelpers/Cordova-sqlcipher-adapter</a>.</p>
  
  <p>Here my code :</p>
  
  <pre><code>...
  import { Platform } from 'ionic-angular';
  
  declare var cordova;
  
  @Component({
    selector: 'page-home',
    templateUrl: 'home.html'
  })
  export class HomePage {
  
    constructor(platform: Platform) {
      platform.ready().then(() =&gt; {
        alert(cordova.plugins.sqlitePlugin);
      });
    }
  </code></pre>
  
  <p>The problem is, what-ever I do, <code>sqlitePlugin</code> is always <code>undefined</code> :/
  However <code>cordova.plugins</code> is an object.</p>
  
  <p>I also tried <code>alert((&lt;any&gt;window).plugins.sqlitePlugin);</code> but the result is the same.</p>
  
  <p>I'm running in an Nexus 5X Android 8 device.</p>
  
  <p>I have installed the plugin this way : <code>ionic cordova plugin add cordova-sqlcipher-adapter --save</code> as a standard cordova plugin.</p>
  
  <p>Any helps would be appreciate :)</p>