Answer the question
In order to leave comments, you need to log in
Why is the result "canceled" when scanning a qr code with a cordova scanner?
$cordovaBarcodeScanner
.scan({
formats : 'QR_CODE'
})
.then(onSuccess, onError);
function onSuccess(qr) {
...
}
Answer the question
In order to leave comments, you need to log in
helped
function scan() {
$timeout(function() {
$cordovaBarcodeScanner.scan().then(onSuccess, onError);
});
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question