nfc_pro_manager 3.1.2 copy "nfc_pro_manager: ^3.1.2" to clipboard
nfc_pro_manager: ^3.1.2 copied to clipboard

The industry-grade NFC SDK for Flutter. Supports robust Host Card Emulation (HCE), Identity Emulation, NDEF Read/Write, and ISO-DEP APDU communication with enterprise lifecycle management.

NFC Pro Manager πŸš€ #

pub package License: MIT

A robust Flutter SDK designed for advanced NFC use cases: payment simulation, smart card communication (ISO-DEP/APDU), and Host Card Emulation (HCE). Built to handle real-world reliability issues like data loss during app startup and connection drops.

❓ Why Nfc Pro Manager? #

Most Flutter NFC plugins are limited to basic NDEF tag reading. This SDK goes further by providing:

  • Full ISO-DEP / APDU support for complex smart card interactions.
  • Native Host Card Emulation (HCE) to turn your phone into a smart card.
  • Persistent Sessions that keep connections alive for multi-command workflows (crucial for payment).
  • Event Buffering which prevents missing card detections during app initialization.

⚑ Quick Start #

await NfcPro.startSession(
  onDiscovered: (tag) => print("Card UID: ${tag.uid}"),
);

πŸ†š Comparison #

Feature nfc_manager nfc_pro_manager
Raw APDU Commands ❌ βœ… Full Support
Card Emulation (HCE) ❌ βœ… Supported
Persistent ISO-DEP ⚠️ Basic βœ… Optimized
Lifecycle Management ❌ βœ… Auto-Suspend
Event Buffering ❌ βœ… Native Queue

πŸ“– Usage Examples #

Reading a Smart Card (APDU) #

Interact with banking cards, e-money, or access cards using batch commands:

List<String?> responses = await NfcPro.runScript([
  NfcApdu.selectAid("F0010203040506"),
  NfcApdu.readBinary(sfi: 1, offset: 0),
]);

Identity Emulation (HCE) #

Turn your Android device into a programmable NFC tag:

await NfcPro.setEmulationId("MY-IDENTITY-TOKEN");

Real Output Example #

UID: 04A224B1C39280
Type: android.nfc.tech.IsoDep, android.nfc.tech.NfcA
Content: Secure Identity Token v3

πŸ’‘ Common Use Cases #

  • πŸ’³ E-money reader for balance checking.
  • 🏒 Digital access cards for office or gym entry.
  • πŸ” Secure login via physical NFC tokens.
  • πŸ“‡ Smart identity cards for attendance systems.

πŸŽ– Platform Support & Limitations #

Feature Android iOS
Tag Discovery βœ… βœ…
APDU (ISO-DEP) βœ… βœ… (ISO7816 only)
HCE (Emulation) βœ… ❌ (Apple Lock)
NDEF Write βœ… ❌

⚠️ iOS CoreNFC Limitations: #

  • No HCE: Apple does not allow third-party apps to emulate cards.
  • Scanning UI: iOS shows a mandatory system modal during scanning.
  • Background: Very limited background scanning compared to Android.

πŸ“„ License #

MIT License. Created with ❀️ for the Flutter community.

4
likes
0
points
108
downloads

Publisher

unverified uploader

Weekly Downloads

The industry-grade NFC SDK for Flutter. Supports robust Host Card Emulation (HCE), Identity Emulation, NDEF Read/Write, and ISO-DEP APDU communication with enterprise lifecycle management.

Repository (GitHub)
View/report issues

Topics

#nfc #hce #apdu #smart-card #flutter-plugin

License

unknown (license)

Dependencies

flutter

More

Packages that depend on nfc_pro_manager

Packages that implement nfc_pro_manager