Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 49188

Barcode scanner plugin is not working in android Marshmallow ionic

$
0
0

@mohanapriya wrote:

I am developing my ionic app using ngCordova. I have installed camera plugin by using,

cordova plugin add org.apache.cordova.camera

Then, I have installed barcode scanner plugin by using,

cordova plugin add https://github.com/phonegap/phonegap-plugin-barcodescanner.git

While running my ionic app it's asking for camera permission. I have allowed the permission also.
so, I can able to capture the image.

But, by opening the barcode scanner,

    $cordovaBarcodeScanner.scan().then(function(imageData) {
        alert(imageData.text);
        alert("Barcode Format -> " + imageData.format);
        alert("Cancelled -> " + imageData.cancelled);
    }, function(error) {
        alert("An error happened -> " + error);
    });

I can able to opening scanner. I am not able to get the result. scanner is not scanning the barcode..

I tried to degrade the android sdk version as 22 also,

<uses-sdk android:minSdkVersion="16" android:targetSdkVersion="22" />

not working for me !!!!!!!!!

The same plugin is working for me for android 5+ versions.

Anyone help will be Appreciated!!!!

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 49188

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>