ngx-scanner icon indicating copy to clipboard operation
ngx-scanner copied to clipboard

Autostart with back camera by default is not robust

Open maxchene opened this issue 3 years ago • 0 comments

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

maxchene avatar Mar 03 '21 10:03 maxchene