You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have written following code. After installation it gives me alert "In function". but whenever it reaches to "$cordovaBarcodeScanner.scan().then(function(imageData)" it shows "unfortunately app stopped working".It works on many android versions. but it gives error on 4.4. Any body have solution? please provide. Thank You.
Hello,
I have written following code. After installation it gives me alert "In function". but whenever it reaches to "$cordovaBarcodeScanner.scan().then(function(imageData)" it shows "unfortunately app stopped working".It works on many android versions. but it gives error on 4.4. Any body have solution? please provide. Thank You.
exampleApp.controller("ExampleController",function($scope,$cordovaBarcodeScanner){
$scope.scanBarcode = function(){
alert("In function");
$cordovaBarcodeScanner.scan().then(function(imageData){
alert("In function1");
//alert("Format = "+imageData.format);
document.getElementById('customer_bar_id').value = imageData.text;
alert("In function2");
$('#customer_bar_id').show();
alert("In function");
$('#customer_bar_search').show();
},function(error){
alert("An error happened = "+error);
});
}
});
The text was updated successfully, but these errors were encountered: