Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

App Stopped Working during barcode scanning #324

Open
itsrnd opened this issue Mar 16, 2016 · 0 comments
Open

App Stopped Working during barcode scanning #324

itsrnd opened this issue Mar 16, 2016 · 0 comments

Comments

@itsrnd
Copy link

itsrnd commented Mar 16, 2016

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);
});
}
});

@itsrnd itsrnd changed the title App Stopped Working App Stopped Working during barcode scanning Mar 16, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant