cccd_nfc_reader 1.0.0
cccd_nfc_reader: ^1.0.0 copied to clipboard
Offline reader for the Vietnamese citizen ID card (CCCD): NFC chip (ICAO 9303 eMRTD, DG13, portrait, passive/chip authentication) and camera MRZ scan.
1.0.0 #
Initial release.
CccdNfcReader.readCardreads the Vietnamese citizen ID card (CCCD / Căn cước) chip over NFC, fully offline: PACE with BAC fallback, MRZ (DG1), portrait (DG2), Vietnamese personal data (DG13), passive authentication (data-group hashes, document signer signature, optional CSCA chain) and chip authentication.CccdNfcReader.scanMrzopens an on-device camera scanner (Android: CameraX + ML Kit bundled model; iOS: AVFoundation + Vision) that reads the MRZ on the back of the card and returns aMrzScanResultwithtoReadCardRequest()- no manual entry.MrzScanOptionssets texts, timeout, consecutive-match stabilisation and the torch button.CccdNfcReader.parseMrzruns the same validated MRZ parser (OCR correction + all four ICAO check digits) on OCR lines from the app's own OCR.CccdNfcReader.nfcStatus,openNfcSettings(Android: NFC panel / settings so the user can switch NFC on; iOS:false),cancelandnativeVersion.- Progress callback (
ReadProgress: step + percent) delivered while a read runs. - Typed, immutable models with redacted
toString();CccdReaderExceptionwithCccdErrorCodeshared with the native SDKs (API contract v1.0), includingcameraPermissionDenied,cameraUnavailableandcameraNotConfiguredfor the scanner. - Bundles CCCD NFC Reader Android SDK 1.0.0 (
cccd-nfc-reader+cccd-nfc-reader-mrzin a local Maven repository, resolved automatically) and iOS SDK 1.0.0 (CCCDReader.xcframework,CCCDReaderMRZ.xcframework,OpenSSL.xcframework), usable with CocoaPods and Swift Package Manager. - Requirements: Android
minSdk23 (CameraX); iOS 15 withNSCameraUsageDescriptionin Info.plist (the plugin links the camera scanner). On Android, ML Kit adds the INTERNET and ACCESS_NETWORK_STATE permissions; the plugin itself makes no network calls.