tidev / ti.barcode

QR and Barcode Scanner
Other
66 stars 90 forks source link

iOS doesn't read 1D barcode #52

Closed macasfaj closed 6 years ago

macasfaj commented 7 years ago

iOS version only reads QR code, not 1D barcode.

Any help with that?

JonCraddock commented 7 years ago

I'm having issues with this as well. It focuses, but the capture event never happens, no matter how clear the picture. Interestingly though, turning the device to landscape allows it to scan the barcode.

brentonhouse commented 6 years ago

I am seeing this issue as well with the latest version: 1.10.1

mlcunha commented 6 years ago

I'm having issues with this as well. Do you know when would you solve this problem?

hansemannn commented 6 years ago

As discussed in #20 (thanks @michelbahl), it could be enabled quite easily via 2 changes in the module source. Contributions welcome!

hansemannn commented 6 years ago

The following 1D barcodes are supported now (via 2.0.1):

albert0m commented 5 years ago

just downloaded the latest version (2.0.4) and created an empty project and it doesn't scan any 1D barcodes (we use the Code 39). It works instantly with QRcodes.

This is the code:

var Barcode = require('ti.barcode');

function barCodeHandler(data) {
    console.log("e",data);
};

Barcode.addEventListener('success', barCodeHandler);
Barcode.capture({
        keepOpen : true
});

the handler is never called.

The app is running on 7.5.0.GA on a iOS 12 device.