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

Unable to scan QR code that other scanners are able to scan

Open roordaj opened this issue 2 years ago • 2 comments
trafficstars

Describe the bug My web app is unable to scan a certain QR code. Other apps, such as iPhone camera and a specific QR code scanner app are able to scan the code without problems. See the QR code attached.

At first I thought the QR code was in a format that ZXing does not support, but when I upload the QR code to https://zxing.org/w/decode the QR decode succeeds. Is the Angular implementation missing a part of the ZXing base code? Any ideas why the QR code is not found / scanned?

To Reproduce Steps to reproduce the behavior:

  1. Angular app with ngx-scanner (e.g. https://zxing-js.github.io/ngx-scanner/)
  2. Use camera to scan QR code
  3. QR code is not scanned / found

Expected behavior The QR code is scanned succesfully

Desktop (please complete the following information):

  • OS: macOS
  • Browser chrome desktop

Smartphone (please complete the following information):

  • Device: iPhone 11 Pro
  • Browser chrome for iOS, safari for iOS, PWA

Files qr_code

roordaj avatar Mar 14 '23 09:03 roordaj

We are seeing similar behavior from iOS devices. Some QR codes are able to scan with no issues, while others don't scan at all. We are able to scan them successfully using non-iOS devices however. Are there any updates on this issue?

kogermd avatar Jan 21 '25 16:01 kogermd

I am able to scan the code with ngx-scanner. when it is rotated correctly (90 degrees) it does get scanned a lot faster though... Beware that zxing-online doesn't use the typescript-code (which should be quite similar but not 100% the same). @kogermd can you provide some samples as well?

werthdavid avatar Jan 22 '25 09:01 werthdavid