ngx-scanner
ngx-scanner copied to clipboard
Autostart with back camera by default is not robust
Describe the bug
When using the component on a french device (non english, non portuguese), the back camera is not always matched because of const matcher = ({ label }) => /back|trás|rear|traseira|environment|ambiente/gi.test(label);
.
Maybe a good behavior is to add a setter for matcher's regex, or even add some constraints(facingMode) for default camera.
Smartphone (please complete the following information):
- Device: Iphone7
- OS: IOS 12.5.1
- Browser Safari