ti.barcode icon indicating copy to clipboard operation
ti.barcode copied to clipboard

useFrontCamera iOS not working anymore

Open PietroGranati opened this issue 7 years ago • 4 comments

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 avatar Sep 04 '18 09:09 PietroGranati

@PietroGranati Can you please give a test case for this? I'll look in this. Thanks!

vijaysingh-axway avatar Sep 06 '18 04:09 vijaysingh-axway

Barcode.capture({ animate : false, useFrontCamera : true, overlay : overlay, showCancel : false, showRectangle : true, keepOpen : false, acceptedFormats : [Barcode.FORMAT_QR_CODE] });

Start with backcamera

PietroGranati avatar Feb 04 '19 16:02 PietroGranati

While on the 1.10.2 is starting with frontcamera

PietroGranati avatar Feb 04 '19 16:02 PietroGranati

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;

PietroGranati avatar Feb 05 '19 11:02 PietroGranati