ti.barcode
ti.barcode copied to clipboard
useFrontCamera iOS not working anymore
Hi everyone I've update the module from 1.10 to 2.0.2 on iOS and the useFrontCamera : true in che launch for capture not working anymore when was working on 1.10, so I rollback.
@PietroGranati Can you please give a test case for this? I'll look in this. Thanks!
Barcode.capture({ animate : false, useFrontCamera : true, overlay : overlay, showCancel : false, showRectangle : true, keepOpen : false, acceptedFormats : [Barcode.FORMAT_QR_CODE] });
Start with backcamera
While on the 1.10.2 is starting with frontcamera
Fixed by put useFrontCamera = false before every call and setting timeut. What's happening with iOS 10 & new xcode?
Barcode.useFrontCamera = false; Barcode.capture({ animate: true, //useFrontCamera : true, overlay: overlay, showCancel: false, showRectangle: true, keepOpen: false, acceptedFormats: [Barcode.FORMAT_QR_CODE] }); if(OS_IOS) setTimeout(frontCamera, 100); else Barcode.useFrontCamera = true;