App crashing with $cordovaBarcodeScanner iOS-8

using ionic view on ios8 iphone 5s i upload a simple app to use $cordovaBarcodeScanner.
after the uploading the app and download it on ionic view the app crashes directly after attempting to scan.
app works perfectly fine on ionic view running on ipad iOS-7.

  <body ng-app="starter">
    <ion-pane ng-controller="BarcodeCtrl">
      <ion-header-bar class="bar-stable">
        <h1 class="title">Ionic Blank Starter</h1>
        <button ng-click="scanBarCode()">Scan Barcode</button>

 qrApp.controller('BarcodeCtrl', function($scope, $cordovaBarcodeScanner) {
      $scope.scanBarCode = function() {
            .then(function(barcodeData) {
            }, function(error) {

ok so i am replying to my self … this was stupid actually … after 2-3hours of debugging and trying to test on several devices …
turns out ionic view needs to access camera permission on ios8 that is why app been crashing …
cordova barcodescanner works great!

1 Like

hi! how are you!
May i know how you access camera permission throw ionic view?
Thanks in advance!!