3 ms·
Really interesting write-up! New Zealand COVID Tracer app QR codes are actually pretty similar. We don't use URLs, but we do use a base64 encoded JSON prefixed
by noway421 5y ago
Really interesting write-up! New Zealand COVID Tracer app QR codes are actually pretty similar. We don't use URLs, but we do use a base64 encoded JSON prefixed with the "NZCOVIDTRACER" string.
NZ Covid Tracer App is actually open source and the QR code reading function can be seen here: https://github.com/minhealthnz/nzcovidtracer-app/blob/main/src/features/scan/helpers.ts#L39 https://github.com/minhealthnz/nzcovidtracer-app/blob/main/s...
And here's the type for the JSON we use: https://github.com/minhealthnz/nzcovidtracer-app/blob/main/src/features/scan/types.ts#L1 https://github.com/minhealthnz/nzcovidtracer-app/blob/main/s...
Typical example of a QR code can be found here: https://lenny.cf/all-qr-codes https://lenny.cf/all-qr-codes
- dbaupp 5y agoThank you! And interesting. It seems like the trade-offs are slightly different, although, unless I’m missing something, using URLs does work slightly nicer for people without the appropriate app installed (or scanning with the built-in camera app or other scanner).