On the topic of generating QR codes with JavaScript, I have a project that requires generating QR codes and the various libraries I could find all seemed to be rather... poor. A lot of them were simply made for another era of JavaScript, where the only way to generate the image was to set up a table, or even implement its own png encoder(?). There were a few more modern ones, with active development, but the changelogs weren't terrible re-assuring as they were mostly fixing bugs that really shouldn't happen in a standards compliant code generator.
In the end I settled on Project Nayuki's QR code library[0]. The JavaScript is targeting ECMAScript 5, but is commented really well so it's not too difficult to refactor it into ES6+. I'm hoping to publish my efforts soon, but it still needs some more work.
I began this project in 2016 because I got disappointed by code quality when browsing online for C/C++ QR libs. The JavaScript versions were even worse, especially ones that ported C code poorly and verbosely. On my web page, the bottom section titled "Compared to competitors" contains a detailed commentary.
One good thing about ES5 code is that it is ES6 code. ES6 is essentially a superset. Why refactor it when it works already and will always be more compatible as it is?
qrcode on npm is pretty good. Very simple to use if you just need to convert a string to a QR code, and it has some advanced options if you want to get fancy.
Anyone from Google know what the deal is with barcode scanners on Android, zxing is in "maintenance mode" we have recently added QR scanning to our app and the experience on iOS is far superior (integrated, faster etc). Or do you have to mothball zxing for a period of time before launching a new "scanner product" to get that team promoted before abandoning it as part of the Google SDLC (Build, Promote, Abandon)
Ah another team (Google Lens) must be in the dev / promote phase, also looks like android 9+ has integrated scanner, so sweet, I can use that in 6 years time when I can get the min SDK to that... https://medium.com/turunen/scan-qr-codes-by-google-lens-907d...
> also looks like android 9+ has integrated scanner
I made the decision of not installing play services or emulation layers on my phone, and I can confirm a bunch of low-key apps do not work because of this. That functionality is now considered part of the base system, and only a few applications come with they'd reimplementation of barcode scanning. WhatsApp, for example, has its own, probably for evil reasons :)
AOSP is progressively becoming less useful, and there is no open alternative. Alarming.
Interesting, at least zxing was open source and kinda embeddable [1] Goggles / Lens certainly aren't :-( I share your alarm, would be nice if barcode scanning (amongst others) were part of AOSP. Alas this would detract from Googles ability to track what you scan
Yeah, hopefully Plasma Mobile, UBPorts, PureOS or some other project catches up before the proprietary parts of Android eats AOSP too much. Anyway, I'm looking forward this in any case.
Also, I really like KDE clipboard's manager feature that turns what you copied into a QR code, making it easy to pass data from the computer to a phone. KDE Connect goes further by allowing sharing the clipboard between a phone and a computer but:
- at times, KDE connect is unavailable without tweaking because you are on a WiFi connection that does not allow communication between devices
- you might not want to share the clipboard between the computer and the phone for privacy reasons
- you may want to share something to somebody else's phone
You could update/simplify your Android instructions: the stock camera app will detect QR codes and present a button to connect to the network in the link (tested using Pixel 3 running Android Pie)
Its been so nice since iOS has had a QR code reader natively in the camera for a few years
Mobile devices having this natively was a dream back in the beginning of the decade
Android OS doesnt have this natively so the devices dont reliably have that still
Reason 25 to just stay away since there a fundamental limitations to android getting better that have nothing to do with overpowered hardware and customization
I am kinda pissed that after all this time, Android doesn't natively support that and instead still rely on third-party apps. IMO it should be mandatory that all camera apps that comes with a device on Android be able to read all sorts of QR codes.
I believe you can use the Google Goggles app to read QR codes, but I no longer have an Android phone to try it out. It’s not a default app for whatever reason.
Could be a variety of factors ranging from apathy to intellectual property, very unlikely to be the OEM hardware or software variances, but it also could be
I've got a wifi QR code printed and hung on the wall of my apartment. It's nice to be able to tell guests to just scan the QR code instead of giving them my very long wifi password.
Banks are some of the most conservative institutions on earth. They also have a lot to lose if they do it wrong, so progress is usually slow. There are some who go against the grain, though, like for instance Revolut.
Im not really familiar with how qr codes actually work, ive wondered before if its possible to add multiple networks/passowrds from a single qr code, or does it not work that way?
Do regular people (outside the tech bubble) even use QR codes anymore?
Using them involves installing a reader app, and even when embedded in phone camera apps, the functionality is hidden or implicit.
QR codes look cool and feel like the future, but they seem like something that never really materialized in becoming widespread to the general populace.
Not arguing against this product per se, but QR codes in general...
QR Codes for payment are absolutely _huge_ in China & a few other countries. So is QR Codes for authentication (WeChat & WhatsApp use them) and a few other uses.
I feel like both Google and Apple has just want QR codes to go away. Some of their apps use QR codes for very specific purposes, like setups, but neither of them provide a generic QR code scanning app.
The Twitter app on Android actually has a built in generic QR scanner for whatever reason, but for most purposes I use ZXing team's Barcode Scanner app. I've been looking towards using a QR code keyboard to semi-safely let me input complex passwords in apps.
[EDIT] Another reply notes that the Apple camera app actually does scan QR codes out of the box. I haven't used an iPhone / iPod in years so made an incorrect guess.
[EDIT] Apparently some Google made Android phones do actually have some QR code support in the default camera app, but the Nexus 6P (Huawei, but under the now defunct Nexus program) certainly doesn't.
I took this image [1] yesterday in a fairly nice italian restaurant in Vientiane, Laos.
It stood out to me because of all the qrcodes and because they are all Chinese payment providers. China is building dams, roads and railways all across Laos. The workers bring their families. The families need to eat. Apparently, they like italian food.
I could go on and talk about thoughts on Libra related to this, but I would probably get downvoted. =)
It looks like there are two Laotian payment providers -- BCEL OnePay and LDB Trust -- and two Chinese payment providers -- WeChat (which has two signs there) and AliPay.
Here in Southeast Asia, many payment providers are springing up and they all use the same QR-code approach that the original WeChat and AliPay use, so it makes sense that BCEL and LDB Trust are doing the same.
I'm just surprised that it hasn't taken off in the West. It's super useful for a lot of things. I suspect that a lack of QR code implementation in apps for Facebook and Twitter has a lot to do with it. Kinda prevents mass adoptions when they haven't found a usecase for it, though all those Asian sites clearly have.
More used in places where the local alphabet isn't latin characters and remembering/typing latin-based URLs, usernames and email addresses is more difficult. (although even there they rely more on "do a web search on this phrase")
Scanning a venmo code is a daily occurence for younger people these days. Same with the snapchat codes. Its quick and easy, especially for drunk people. QR codes rock, but yeah, they need to be adopted as standard by google and apple.
iOS camera reads QR codes by default. Just point your phone with the default camera app ON. No special mode required. I have a qr code printed on my living room (made to look like andy warhold art, with multiple colored panels etc) so that guests can use the wifi. Pretty convenient.
Do real end users even know that these features exist? I've barely seen anyone use QR codes in the wild.
I feel my question was misinterpreted - it's not that I don't find QR codes useful or that technical people don't use them, but I believe the widespread populace aren't aware of the features that allow their use.
Well, the fact that one of the biggest phone OS supports QR codes natively in the camera, severely reduces the friction that comes from "what's that weird thing, oh it's called a QR code, here's download this app on the appstore. No, not that one, it has a bitcoin miner in it. Yes the free one". Just point your phone to it and it works! Now whether the world outside caught on, or not... where I am from definitely not, however the biggest barrier was the problem I described above.
Last year, my entire track team had to sign up by QR code.
Personally, I think that QR codes will only ever become more ubiquitous- there's plenty of easy QR code generators out there- as people move towards mobile devices and things that have always-accessible cameras.
Not many people like typing in long URL's to get somewhere.
Argh, no support for WPA Enterprise??? We're literally stuck with open unencrypted networks with captive portal sign on because the configuration process for WPA Enterprise is so convoluted. This would have been far more helpful if it supported the networks that actually have a bunch of configuration data rather than just an SSID and a password.
In the end I settled on Project Nayuki's QR code library[0]. The JavaScript is targeting ECMAScript 5, but is commented really well so it's not too difficult to refactor it into ES6+. I'm hoping to publish my efforts soon, but it still needs some more work.
[0] https://www.nayuki.io/page/qr-code-generator-library