-
Notifications
You must be signed in to change notification settings - Fork 116
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed the NFC COVID certificate scanner (#237)
* Fixed the NFC COVID certificate scanner * Onboarded Darko Jelen's fix of try/catching the code in onNdefMessageReceived(), to prevent the app from crashing if another NFC tag is read while the decoded screen of the previous certificate is still up on the screen. * All the NDEF messages and all the records contained on an NFC tag are parsed, and those of type urn:nfc:wkt:T containing a text record starting with "HC1:" are decoded. This allows a mixed usage of the NFC tag - for example formatted as a smart poster containing the bearer's information in plain text and a PNG image of the COVID certificate's QR code, readable by any cellphone without the verifier app, as well as the COVID certificate string that can be read and decoded by the verifier app natively. Previously, the NFC tag had contain only a single message with a single urn:nfc:wkt:T text record containing the COVID certificate string, and was not usable in any other fashion. Co-authored-by: Giraut <>
- Loading branch information
Showing
3 changed files
with
23 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters