You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have created a barcode scanner in my react component using QuaggaJS. The scanner is meant to be used on mobile devices through the web view. It's working fine on all iPhone devices but is not scanning correctly on androids. I am guessing this is a resolution issue in the constraints but have not found a solution that works.
my experience is that you can give a camera deviceId or a facingMode as a constraint, but not both. Also, most Androids these days seem to have a camera device that goes to a wide-angle lens, which is useless for barcode scanning because of the fisheye effect. I haven't figured out a good way to filter those devices out, so until/unless s omeone does come up with a good way, it's probably best to let the user supply which camera device works.
I have created a barcode scanner in my react component using QuaggaJS. The scanner is meant to be used on mobile devices through the web view. It's working fine on all iPhone devices but is not scanning correctly on androids. I am guessing this is a resolution issue in the constraints but have not found a solution that works.
The text was updated successfully, but these errors were encountered: