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
5.02k stars 973 forks source link

Compatibility - [IOS mobile] [Safari] - [Scanning and uploading barcode image not working ] #886

Open Mhussein27 opened 9 months ago

Mhussein27 commented 9 months ago

Describe the bug A clear and concise description of what the bug is.

Describe the browser:

Screenshots If applicable, add screenshots to help explain your problem.

Additional context Add any other context about the problem here.

ROBERT-MCDOWELL commented 9 months ago

without any console error nor OS and browser version it's impossible to do anything here. also keep in mind that "(NotFoundException: No MultiFormat Readers were able to detect the code.)" also means that your barcode can also be unreadable, reason why you always need to test your scanner with many different barcodes from different sources and format.

Mhussein27 commented 9 months ago

@ROBERT-MCDOWELL iOS version 17.1.2 , Model name Iphone 13 .. I am able to read same barcode from android mobile with no issue but from iOS mobile it is not working and no error other than error when uploading barcode

Screenshot 2024-01-23 at 2 06 38 PM
ROBERT-MCDOWELL commented 9 months ago

again without javascript console log no way to check what's happening. also keep in mind that if it works on a previous OS / browser version it means that the issue comes always from the OS/Browser side, which you can check there first, unless there is a new javascript error due to something else. More, the camera and its focus is involved and often the issue comes from that.

Mhussein27 commented 9 months ago

@ROBERT-MCDOWELL how to get the console log from safari mobile phone?1 all what I have is screenshot from mobile while doing scanning and nothing happens.. the mobile phone has multiple cameras I tried all of them and the scan not functionally working like in android , I am using same camera focus WhatsApp Image 2024-01-23 at 14 48 34

ipokrovkiy commented 9 months ago

@Mhussein27 You can connect your iPhone to a Macbook and get consol logs in the Safari browser.

Mhussein27 commented 9 months ago

@ipokrovkiy i did that but with no luck to open the same scanning page from mobile safari to appear at laptop safari so Cosole.log after connecting to mobile from to safari browser, shows nothing

ipokrovkiy commented 9 months ago

@Mhussein27 Does it work in Chrome?

If it does not, how to debug on Chrome on mobile

Facing a similar issue on iPhone 13&15, nothing is being scanned.

ROBERT-MCDOWELL commented 9 months ago

I suggest that all of you search on "closed" issues, this topic has been treated since long time and closed.