title: Object(...) is not a function When Using Android Permissions Plugin Ionic 3 Angular 5
body: <p>I have Setup IONIC 3 and ANGULAR 5.2.x And i want to add some download / upload files functionality so i installed android-permissions plugin of cordova and include in app.module.ts and app.component.ts as per the ionic documentation
  but when i add code for checkpermission and request permission like below </p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>import { AndroidPermissions } from '@ionic-native/android-permissions/ngx';
  
  constructor(
      public platform: Platform,
      public menu: MenuController,
      public statusBar: StatusBar,
      public splashScreen: SplashScreen,
      public androidPermissions:AndroidPermissions
    ) {
    
    this.androidPermissions.checkPermission(this.androidPermissions.PERMISSION.CAMERA).then(
        result =&gt; console.log('Has permission?',result.hasPermission),
        err =&gt; this.androidPermissions.requestPermission(this.androidPermissions.PERMISSION.CAMERA)
      );
  
      this.androidPermissions.requestPermissions([this.androidPermissions.PERMISSION.CAMERA, this.androidPermissions.PERMISSION.GET_ACCOUNTS]);
      
    }
    
    </code></pre>
  </div>
  </div>
  </p>
  
  <p>throw an error like below image</p>
  
  <p><a href="https://i.stack.imgur.com/AJxGL.png" rel="nofollow noreferrer">object(...) is not a function</a></p>