Swift class to interface between native lib and javascript through cordova
Budget: $30 – $250 USD
looking for a developer with solid experience in swift, and the latest iOS versions. The goal is to write a swift class to act as NFC controller using NFC Core framework. The class will react to inputs (ie, conform to an interface) so as to be used as a Cordova plugin; and will use a provided native library to communicate with the found NFC device.
Deliverables
The attached MCardNFC.h is the interface that the class to be written has to comply with.
startWatch receives no argument, and should start listening to NFC.When found, it should emit a onNFCFound javascript event.
stopWatch receives no argument, and stops NFC
getCertificate receives two arguments, a string which is the can to use for authentication if provided, and a boolean indicating whether to use the native readAuthCertificate (true) or readSignCertificate, the return expected is an array of bytes.
sign receives for arguments, two strings for can and pin to be used if provided, a boolean indicating the certificate to use, and a JSON object of the form {hashAlgorithm: 'XXX', data: [42, 1, 35]}[] that contains the challenges. The return expected is {alg: 'YYY', signature: [-1, 3, 4]}[].
readIcao receives a can for authentication to be used if provided, and should return the raw result of the native method.
Deliverables
The attached MCardNFC.h is the interface that the class to be written has to comply with.
startWatch receives no argument, and should start listening to NFC.When found, it should emit a onNFCFound javascript event.
stopWatch receives no argument, and stops NFC
getCertificate receives two arguments, a string which is the can to use for authentication if provided, and a boolean indicating whether to use the native readAuthCertificate (true) or readSignCertificate, the return expected is an array of bytes.
sign receives for arguments, two strings for can and pin to be used if provided, a boolean indicating the certificate to use, and a JSON object of the form {hashAlgorithm: 'XXX', data: [42, 1, 35]}[] that contains the challenges. The return expected is {alg: 'YYY', signature: [-1, 3, 4]}[].
readIcao receives a can for authentication to be used if provided, and should return the raw result of the native method.