FHIR Chat · mobile QR code libraries? · smart/health-cards

Stream: smart/health-cards

Topic: mobile QR code libraries?


view this post on Zulip 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?

view this post on Zulip Josh Mandel (May 06 2021 at 21:24):

In Java, folks have had good a experience with https://github.com/nayuki/QR-Code-generator

view this post on Zulip Josh Mandel (May 06 2021 at 21:32):

I'm not familiar with iOS libraries -- wonder if @Pascal Pfiffner might be able to comment.

view this post on Zulip 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.

view this post on Zulip Isaac Vetter (May 06 2021 at 23:17):

On the flip side, this sounds like a great opportunity for enhancing Core Image!

view this post on Zulip James Kizer (May 27 2021 at 12:54):

@Isaac Vetter did you have any luck finding an good iOS library for multi-mode QRs?

view this post on Zulip 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.

view this post on Zulip 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