title: Ionic native barcode scanner camera issue
body: <p>I have an app on ionic 3. I have installed:</p>
  
  <p>"@ionic-native/barcode-scanner": "^4.16.0"</p>
  
  <p>"phonegap-plugin-barcodescanner": "^8.0.0"</p>
  
  <p>Platform is cordova browser.</p>
  
  <p>When i try to scan a popup shows up and asks me to enter the barcode:
  <a href="https://i.stack.imgur.com/c7NqN.png" rel="nofollow noreferrer">screencapture</a></p>
  
  <p>Shouldn't the default action be to open camera to start scanning. I don't know what i am doing wrong. Can someone please help!</p>
  
  <p>Following is the code:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="false" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>import { Component, ViewChild, OnInit } from '@angular/core';
  import { IonicPage, ToastController, LoadingController } from 'ionic-angular';
  import { BarcodeScanner, BarcodeScannerOptions, BarcodeScanResult } from '@ionic-native/barcode-scanner';
  
  import { QrScannerComponent } from 'angular2-qrscanner';
  
  import { ProfileService } from '../profile/profile.service';
  import { FirebaseAuthService } from '../firebase-integration/firebase-auth.service';
  
  @IonicPage()
  @Component({
    selector: 'page-scanner',
    templateUrl: 'scanner.html',
  })
  export class ScannerPage {
  
    result: BarcodeScanResult;
    loading: any;
    transactions: any;
  
    constructor(
      public toastCtrl: ToastController,
      public loadingCtrl: LoadingController,
      public profileService: ProfileService,
      public fAuthService: FirebaseAuthService,
      private barcodeScanner: BarcodeScanner
    ) {
    }
  
    async scan() {
      try{
        let options: BarcodeScannerOptions = {
          torchOn: true,
          prompt: "Point the camera at the barcode"
        };
  
        this.result = await this.barcodeScanner.scan(options);
      }
      catch(error) {
        console.log(error);
      }
    }
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;ion-card class="camera-card"&gt;
      &lt;ion-card-content&gt;
      
        &lt;button ion-button (click)="scan()"&gt;Scan&lt;/button&gt;
        
      &lt;/ion-card-content&gt;
    &lt;/ion-card&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>Following is the ionic info result:
  <a href="https://i.stack.imgur.com/hqKVF.png" rel="nofollow noreferrer">screencapture-ionic info</a></p>