html5-qrcode icon indicating copy to clipboard operation
html5-qrcode copied to clipboard

not work on android and ios

Open KupueIIIKo opened this issue 10 years ago • 3 comments

doesn't work at android and ios

KupueIIIKo avatar Apr 11 '14 13:04 KupueIIIKo

I've submitted some changes so it works on Android: https://github.com/enriquetuya/html5-qrcode, the demo is not updated, you can try them out locally.

On iOS it will not work on Safari since it does not support WebRTC yet and on chrome for ios I think it won't work neither since ios does not provide access to the camera.

enriquetuya avatar May 30 '14 16:05 enriquetuya

@enriquetuya Your version reports this for the not compiled version: qrcode.callback = qrcodeSuccess; in line 118. But the camera works on android!

nikswap avatar Dec 30 '14 19:12 nikswap

@enriquetuya solved the problem. Just needed to compile. However after compiling do I get this error:

IndexError: "Failed to execute 'getImageData' on 'CanvasRenderingContext2D': The source width is 0."

My compile script: type src\jsqrcode\src\grid.js src\jsqrcode\src\version.js src\jsqrcode\src\detector.js src\jsqrcode\src\formatinf.js src\jsqrcode\src\errorlevel.js src\jsqrcode\src\bitmat.js src\jsqrcode\src\datablock.js src\jsqrcode\src\bmparser.js src\jsqrcode\src\datamask.js src\jsqrcode\src\rsdecoder.js src\jsqrcode\src\gf256poly.js src\jsqrcode\src\gf256.js src\jsqrcode\src\decoder.js src\jsqrcode\src\QRCode.js src\jsqrcode\src\findpat.js src\jsqrcode\src\alignpat.js src\jsqrcode\src\databr.js src\html5-qrcode.js > html5-qrcode.js

I could not get uglify to work proberly, so I just cat'ed all the files together.

nikswap avatar Dec 30 '14 20:12 nikswap

Thanks @enriquetuya it really does work

faizanyasin avatar Oct 13 '16 09:10 faizanyasin