Open krstns opened 12 years ago
After few hours of pulling my hair I got to the center of it:
In setupqr() function:
wd = window.innerWidth;
ht = window.innerHeight;
On Android < 4.0 these two variables will be set to 0. This way the canvas has no size, thus it is not shown on screen after the code is generated.
I'm not sure how to create a generic solution for all of the Android versions, but for me, where I need to specify concrete values, it makes this 'plugin' work.
I have the same problem. With this code: https://github.com/lrsjng/jquery-qrcode/blob/master/src/lib/qrcode.js you can a plain graphic too. Unfortunately it generates GIF. Perhaps there is a converter. If you have net you can use one of thousand web services, which generates PNG
Hello,
I can only get this to work with Android version 4.x and above [haven't tried 3.x]. None of the emulators nor handsets with Android 2.2 nor 2.3 work with this.
I'm trying to encode something as simple as 'abecadlo' using this code:
Also, this is what I get on emulator 4.x [although it shows the code]