cordova-plugin-qrscanner icon indicating copy to clipboard operation
cordova-plugin-qrscanner copied to clipboard

feat(ios,android): Adds support for barcodes

Open tymarats opened this issue 5 years ago • 6 comments

This PR adds support for scanning barcodes of various formats. You can use it like this:

            QRScanner.prepare((err, status) => {
                // ...
            }, { formats: [ 'CODE_128', 'QR_CODE', 'EAN_13' ] });

or:

            QRScanner.scan((err, text) => {
                // ...
            }, { formats: [ 'AZTEC', 'QR_CODE', 'PDF_417' ] });

If options object is not provided, it behaves exactly as the original (only QR codes are being recognized).

tymarats avatar May 07 '19 16:05 tymarats

Please merge this pull-request in.

thebarty avatar Mar 29 '20 11:03 thebarty

NOTE that this has been released on NPM as https://www.npmjs.com/package/cordova-plugin-qrscanner-codaxy

thebarty avatar Apr 01 '20 07:04 thebarty

@thebarty Hi, Do you know how to handle that with ionic ?

Stun3R avatar Jun 03 '20 15:06 Stun3R

@thebarty Hi, Can you tell how to import it after installation ?

ayubUOL avatar Aug 10 '21 11:08 ayubUOL

@tymarats does this fork work with browser plattform?

cyptus avatar Oct 13 '21 16:10 cyptus

@cyptus Thank you for reaching out via email. Just to reply here as well (based on your inputs), in case someone else has the same question in the future.

As you noticed, the browser platform is using qrcode-reader, and that package apparently does not support barcode scanning. So, the question really is if it can be added to qrcode-reader (in which case we should just update the package dependency and rebuild), or if we can use another library that supports both QR and barcode decoding. Unfortunately, we are not actively maintaining this plugin (and the browser platform was out of our scope to begin with), so it's not likely that anyone from our side will pick it up in the foreseeable future :(

tymarats avatar Oct 19 '21 18:10 tymarats