@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