N
N
nuclear_kote2016-07-07 20:18:32
Apache Cordova
nuclear_kote, 2016-07-07 20:18:32

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)  {
...
}

if it was not possible to scan, the attempt to scan is repeated, but qr.canceled = true comes to onSuccess.
onError is never called at all

Answer the question

In order to leave comments, you need to log in

2 answer(s)
N
nuclear_kote, 2016-07-11
@nuclear_kote

helped

function scan() {
        $timeout(function() {
             $cordovaBarcodeScanner.scan().then(onSuccess, onError);
        });
    }

N
Nicholas, 2016-07-08
@ACCNCC

Plugin bug! change or write to the developer.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question