I need to read QR code in my app. So I am testing on the iOS device. I added module and I am using this example so far
App crashing on this line
Barcode.capture({
animate: true,
overlay: overlay,
showCancel: false,
showRectangle: false,
keepOpen: true/*,
acceptedFormats: [
Barcode.FORMAT_QR_CODE
]*/
});
I tried also without params like this Barcode.capture();
but still crashing.
SDK version is 6.0.1.GA
ti.barcode version is 1.9.1
Most likely if there is no log showing the crash then it is related to NSCameraUsageDescription key-value in tiapp.xml.
Add it like this: