Yet another plugin to provide NFC functionality on Android and iOS.
This plugin's functionalities include:
- transceive commands with tags / cards complying with:
- ISO 7816 Smart Cards (layer 4, in APDUs)
- Add android.permission.NFC to your
AndroidManifest.xml
.
-
Add Near Field Communication Tag Reader Session Formats Entitlements to your entitlements.
-
Add NFCReaderUsageDescription to your
Info.plist
. -
Add com.apple.developer.nfc.readersession.iso7816.select-identifiers to your
Info.plist
as needed. WARNING: you MUST add them before invokingpoll
withreadIso18092
orreadIso15693
enabled, or your NFC WILL BE TOTALLY UNAVAILABLE BEFORE REBOOT due to a CoreNFC bug. -
Open Runner.xcworkspace with Xcode and navigate to project settings then the tab Signing & Capabilities.
-
Select the Runner in targets in left sidebar then press the "+ Capability" in the left upper corner and choose Near Field Communication Tag Reading.
We use error codes with similar meaning as HTTP status code. Brief explanation and error cause in string (if available) will also be returned when an error occurs.