id1945 / ngx-scanner-qrcode

This library is built to provide a solution scanner QR code. This library takes in raw images and will locate, extract and parse any QR code found within.
https://id1945.github.io/ngx-scanner-qrcode
GNU Lesser General Public License v2.1
56 stars 28 forks source link

iPhone 14 + 15 not detecting barcodes #70

Open segesjesl opened 5 months ago

segesjesl commented 5 months ago

Hi

First of all, good job with this library.

I'm experiencing an issue when using this on iPhone 14 + 15 (iOS 17.5.1). The camera is working well, and I'm able to switch between the cameras, but it is very difficult for the component to detect the barcodes. It works very well on Android. I'm using it to scan CODE-128 barcodes.

I have tested on iPhone SE, iPhone 12, iPhone 13 and it works well here. I don't know if there is some other firmware for the cameras on newer iPhones, or whether it is this library not optimized for it.

I'm using Angular 18.0.2 and "ngx-scanner-qrcode": "^1.6.9",

You can test it on iPhone here or here

tehnorm commented 3 months ago

I am seeing the same issue as well. Oddly if I connect my iPhone camera to Chrome in the web example it works great. I wonder if this is a mobile only issue.

segesjesl commented 3 months ago

@tehnorm Yeah, it might be related to iOS versions.

I've found these issues and articles describing (what I think must be related to) the same issue: https://github.com/mebjas/html5-qrcode/issues/679 https://github.com/serratus/quaggaJS/issues/486 https://support.scandit.com/hc/en-us/articles/6835638239388-Scanning-Challenges-on-iPhone-14-Pro-and-iPhone-14-Pro-Max https://www.reddit.com/r/iOSProgramming/comments/16g3dxz/iphone_14_pro_max_qr_codebarcode_scanning_problems/ https://www.reddit.com/r/applehelp/comments/y1hn5o/iphone_14_pro_3_party_app_barcode_scan_doesnt_work/ https://discussions.apple.com/thread/254887680?sortBy=best https://discussions.apple.com/thread/254213411?sortBy=best https://www.reddit.com/r/iOSProgramming/comments/16g3dxz/iphone_14_pro_max_qr_codebarcode_scanning_problems/

In the meantime, I've been contacted by scanbot that seems to have solved this very same issue in their implementation. https://scanbot.io/demo-apps/

Our solution was to install ScanKey on the iPhones that have this issue.