Cordova plugin to communication with USB CCID NFC Reader via USB (OTG).
- android
- ACS ACR122U
- HID OMNIKEY 5022 CL
Type following command from CLI to add this plugin
cordova plugin add cordova-plugin-k-usb-nfc
The plugin creates the object KUsbNfc
into DOM.
This method should call once while platform get ready. Once it get connected, then the device information will return into the success callback. Tag information also return into same success callback while tag is present into device.
connect(
callbackSuccess: (res: any) => void,
callbackError: (err: any) => void
): void;
This method should invoke to close the usb port for device.
disconnect(
callbackSuccess: (res: any) => void,
callbackError: (err: any) => void
): void;