nfc_manager
4.4.0, released 6 days ago by okadan.net
A Flutter plugin providing access to NFC features on Android and iOS.
What it does
Allows Flutter apps to check NFC availability, start and stop NFC sessions, and interact with various NFC tags and card types across Android and iOS platforms.
AI-written summary of version 4.3.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- Building an app that needs to read or write NFC tags
- Integrating Near Field Communication features on both Android and iOS
Skip it when
- You do not need hardware-level device features like NFC
- You only need barcode or QR scanning (use camera instead)
Strengths
- Cross-platform support for both Android and iOS
- Provides platform-specific and abstract tag classes
Weaknesses
- Requires manual native permission configuration for Android and iOS
- Breaking changes between major versions require code updates
Setup
- Kind
- Plugin (native code)
- Effort
- Medium
- Code generation
- No
- Direct dependencies
- 2
Requires adding NFC permissions and entries to AndroidManifest.xml and Info.plist/Entitlements for iOS.
NfcAvailability availability = await NfcManager.instance.checkAvailability();
NfcManager.instance.startSession(
onDiscovered: (NfcTag tag) async {
print(tag);
await NfcManager.instance.stopSession();
},
);Alternatives
Packages that do the same job and could replace nfc_manager.
- jni_flutter
Access Flutter Android APIs from Dart.
87Compare - nativeapi
Dart bindings to native system APIs across desktop and mobile
85Compare - flutter_telegram_miniapp
Flutter wrapper for the Telegram Mini Apps API with type-safe Dart classes.
57Compare - shizuku_api
Flutter plugin to run shell commands via Shizuku without root
69Compare
Works with
Packages commonly used together with nfc_manager: ones it builds on, ones built on it, and its own family.