mebjas / html5-qrcode

A cross platform HTML5 QR code reader. See end to end implementation at: https://scanapp.org
https://qrcode.minhazav.dev
Apache License 2.0
4.87k stars 960 forks source link

Compatibility - [iOS] [safari] - [Fail to scan Barcode in iPhone (safari).] #618

Open minshinehung opened 1 year ago

minshinehung commented 1 year ago

Describe the bug Fail to scan Barcode in iPhone (safari). Already set useBarCodeDetectorIfSupported: true

Describe the browser:

Screenshots Please see attachment iphone_html5barcode_barcode

mebjas commented 1 year ago

Yes iOS barcode detector seems to be bad at detecting bar codes. If your primary use case is barcode I recommend setting that flag as false for now.

On Tue, Nov 22, 2022, 2:26 PM minshinehung @.***> wrote:

Describe the bug Fail to scan Barcode in iPhone (safari). Already set useBarCodeDetectorIfSupported: true

Describe the browser:

  • OS: iOS
  • Browser safari
  • Version 15.7.1

Screenshots Please see attachment [image: iphone_html5barcode_barcode] https://user-images.githubusercontent.com/118278617/203240082-8b1a98be-48b7-4302-af9b-99458a176a9b.png

— Reply to this email directly, view it on GitHub https://github.com/mebjas/html5-qrcode/issues/618, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAW6HBPLDDQC4TXT425EII3WJRRQPANCNFSM6AAAAAASHNUMKA . You are receiving this because you are subscribed to this thread.Message ID: @.***>

minshinehung commented 1 year ago

Hi minhaz

Thanks for your reply We setted useBarCodeDetectorIfSupported to false, but it still Failed to scan Barcode in iPhone (safari).

Thanks for your help

Best Regards

min

mebjas commented 1 year ago

What type of code is this?

mebjas commented 1 year ago

I am able to scan the same CODE_39 data generated here on https://scanapp.org/barcode but not the screenshot you have attached. Looking further.

Reference code: https://barcode.tec-it.com/en/Code39?data=1111031709

minshinehung commented 1 year ago

Hi minhaz

1.The test site is https://meeting.csie.ntnu.edu.tw/C_html5qrcode_direct_03 2.The scanned barcode is as attachment. Please print it then scan in paper. 3.Our code is as following

We have been test it in different iPhone service. It is ok for Android to scan barcode. What should we do? Thanks for your help

Best Regards

min


寄件者: minhaz @.> 寄件日期: 2022年11月22日 下午 09:02 收件者: mebjas/html5-qrcode @.> 副本: minshinehung @.>; Author @.> 主旨: Re: [mebjas/html5-qrcode] Compatibility - [iOS] [safari] - [Fail to scan Barcode in iPhone (safari).] (Issue #618)

I am able to scan the same CODE_39 data generated here on https://scanapp.org/barcode but not the screenshot you have attached. Looking further.

— Reply to this email directly, view it on GitHubhttps://github.com/mebjas/html5-qrcode/issues/618#issuecomment-1323646030, or unsubscribehttps://github.com/notifications/unsubscribe-auth/A4GMTWOSJXCZ4EDZTWPLFMLWJS77NANCNFSM6AAAAAASHNUMKA. You are receiving this because you authored the thread.Message ID: @.***>

pawanjenu commented 1 year ago

Any updates on IOS- Barcode scanning @mebjas ?

pawanjenu commented 1 year ago

@mebjas , requesting your assistance here. thanks

jgudo commented 1 year ago

@minshinehung Any updates on this? I'm also facing the same issue with iOS devices. Even the tested it on https://scanapp.org/barcode, still can't scan CODE_39 and CODE_128 barcodes. However, if I tilt or adjust the camera to a certain angle, it works sometimes, not a good UX though.

minshinehung commented 1 year ago

Julius Guevarra:

try this

      
            
                  

            

      


寄件者: Julius Guevarra @.> 寄件日期: 2023年1月29日 上午 08:15 收件者: mebjas/html5-qrcode @.> 副本: minshinehung @.>; Mention @.> 主旨: Re: [mebjas/html5-qrcode] Compatibility - [iOS] [safari] - [Fail to scan Barcode in iPhone (safari).] (Issue #618)

@minshinehunghttps://github.com/minshinehung Any updates on this? I'm also facing the same issue with iOS devices. Even the tested it on https://scanapp.org/barcode, still can't scan CODE_39 and CODE_128 barcodes. However, if I tilt or adjust the camera to a certain angle, it works sometimes, not a good UX though.

— Reply to this email directly, view it on GitHubhttps://github.com/mebjas/html5-qrcode/issues/618#issuecomment-1407518474, or unsubscribehttps://github.com/notifications/unsubscribe-auth/A4GMTWIIDN2A2T2TGXTHIQTWUWZB5ANCNFSM6AAAAAASHNUMKA. You are receiving this because you were mentioned.Message ID: @.***>

GithubOllie commented 1 year ago

I am also having issues that the camera does not scan QR codes when on iPhone/Safari. Demo

fengpang commented 1 year ago

I am also having issues that the camera does not scan QR codes when on iPhone/Safari. Demo

https://zxing-js.github.io/library/examples/barcode-camera/
This one can work normally