I knew odk has its native barcode scanner but I want to learn how to use this external app because it has other features such as NFC feature as well. At the very basic, I want to know how it returns the value after QR scan from ODK intent.
I just downloaded the app and have the intent in the appearance. The form able to call the intent, however I didn't get the output after scan.
I believe this app is built with odk intent and it shall be quite easy to use. I wonder what I am missing.
Can you take a look and how it can be used on ODK? The info is provided previously.
I need to take a closer look to check if this app can be used by ODK Collect. They mention ODK in a few places in the README file but I'm not sure if it stands for Open Data Kit or maybe something else. How did you find that app? Are you sure it is supposed to work with ODK Collect?
value for sure it's basically the number it represents (1234567890128 if you use the attached barcode)
other elements are:
corners (string) : 4 corner points of the overall barcode being scanned
imagePath (string) : Image path of the barcode successfully captured
image (string) : Image in Base64 string of the barcode successfully captured
As far as I can tell this app is designed for use with passports and the intents pull in data specific to passports. I suppose it would take a bit of re-coding to make it more generally useful as an interface between ODK and general purpose barcodes, NFCs and MRZs
I’m particularly interested in the use of the NFC stuff and it seems like the Wakdev NFC Tools pro app (£2.99) can handle read and write of NFCs and has an API.
I’m not technically minded enough to figure out what we’d need to put in an ODK form to grab data from an NFC
docs are here
I’m sure this is really simple if the styling of the intents is compatible with ODK
I think the external app need to be customized to return the values encoded in NFC, just like how the ID PASS SmartScanner did.
You can check the code as follows:
I am not expert on the programming but I believe the simple api you shared might not enough to do it.
I have tested the barcode and qrcode of ID PASS SmartScanner. It will simply return a text string to a single field. However, I couldn't get the qr_code_json_value for QR scan works. Initially, I thought it will read a json string and process the key:value pairs and parse in to the ODK form with field named exactly the same as keys.
Perhaps, I mis-understanding how this should work, I never get returns for qr_code_json_value after a few QR scan tries.
Looking to save time? Try ODK Cloud, the official managed hosting service from the creators of ODK.