Stream: smart/health-cards
Topic: mobile QR code libraries?
Isaac Vetter (May 06 2021 at 21:08):
Are you generating SHC barcodes on iOS or Android? It seems like many libraries (e.g. Swift's CoreImage, zxing) do not support mixed mode encoding. How are others accomplishing this?
Josh Mandel (May 06 2021 at 21:24):
In Java, folks have had good a experience with https://github.com/nayuki/QR-Code-generator
Josh Mandel (May 06 2021 at 21:32):
I'm not familiar with iOS libraries -- wonder if @Pascal Pfiffner might be able to comment.
Josh Mandel (May 06 2021 at 21:40):
(Note the library above also includes a C and Rust language implementation that presumably could be wrapped on iOS, but this sounds painful.)
Library support for our encoding scheme is a key consideration; if we determine support isn't good enough, this could be reason to re-work how we encode QRs or even potentially how we generate JWSs.
Isaac Vetter (May 06 2021 at 23:17):
On the flip side, this sounds like a great opportunity for enhancing Core Image!
James Kizer (May 27 2021 at 12:54):
@Isaac Vetter did you have any luck finding an good iOS library for multi-mode QRs?
Pascal Pfiffner (Sep 14 2021 at 06:39):
Probably late to the party, but CoreImage's CIQRCodeGenerator
applies multi-mode automatically in iOS 15 and should work well for SHC QR codes.
Oliver Pang (Sep 14 2021 at 18:42):
@James Kizer We explored possible iOS libraries - but the consensus was that wrapping the nayuki C/Rust implementations for iOS was likely the road we'd have to go down. We didn't go that route in the end so unfortunately can't be of much help.
Pascal makes a good point for iOS 15 too.
Last updated: Apr 12 2022 at 19:14 UTC