You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the Question
Hi, i create a simple page for scanning the barcode, but on iphone not works
Link to stackoverflow
Please raise this question in stackoverflow.com for faster answer and add the link here.
Context about your web application
Where are you using this and how. It'd be helpful if you provide your usage code example
<html><head><title>Html-Qrcode Demo</title><body><divid="qr-reader"style="width:500px"></div><divid="qr-reader-results"></div></body><scriptsrc="https://unpkg.com/html5-qrcode"type="text/javascript"></script><script>
function docReady(fn) {// see if DOM is already availableif(document.readyState==="complete"||document.readyState==="interactive"){// call on next available ticksetTimeout(fn,1);} else {document.addEventListener("DOMContentLoaded",fn);}}docReady(function(){varresultContainer=document.getElementById('qr-reader-results');varlastResult,countResults=0;functiononScanSuccess(decodedText,decodedResult){if(decodedText!==lastResult){++countResults;lastResult=decodedText;// Handle on success condition with the decoded message.alert(decodedText);console.log('Scan result ${decodedText}',decodedResult);}}functiononScanFailure(error){// handle scan failure, usually better to ignore and keep scanning.// for example:alert(error);}varhtml5QrcodeScanner=newHtml5QrcodeScanner("qr-reader",{fps: 10,qrbox: 250});html5QrcodeScanner.render(onScanSuccess);});
</script></head></html>
Optional, Environment (please complete the following information):
Device: [Iphone 8]
OS: [IOS 16.7.10]
Browser [chrome, safari]
Version [e.g. 22]
this is my code, and on android device works fine but iphone no!! we can help me, If I understand correctly it should be compatible
The text was updated successfully, but these errors were encountered:
Describe the Question
Hi, i create a simple page for scanning the barcode, but on iphone not works
Link to stackoverflow
Please raise this question in stackoverflow.com for faster answer and add the link here.
Context about your web application
Where are you using this and how. It'd be helpful if you provide your usage code example
Optional, Environment (please complete the following information):
this is my code, and on android device works fine but iphone no!! we can help me, If I understand correctly it should be compatible
The text was updated successfully, but these errors were encountered: