flutter_nfc_mynumber 0.0.1 flutter_nfc_mynumber: ^0.0.1 copied to clipboard
Flutter plugin for accessing the Japanese Mynumber features on Android and iOS.
flutter_nfc_mynumber #
Flutter plugin for accessing the Japanese Mynumber features on Android and iOS.
Setup #
Android Setup
- Add android.permission.NFC to your
AndroidMenifest.xml
.
iOS Setup
-
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
. -
Add the following 4 items to com.apple.developer.nfc.readersession.iso7816.select-identifiers
D392F000260100000001
D3921000310001010408
D3921000310001010100
D3921000310001010401
Usage #
var nfcAvailability = await FlutterNfcMynumber.nfcAvailability;
if (availability != NFCAvailability.available) {
// oh-no
}
await FlutterNfcMynumber.startSession();
await FlutterNfcMynumber.setIosAlertMessage("working on it...");
var authPinRetryCount = await MynumberUtil.getAuthPinRetryCount();
await FlutterNfcMynumber.finishSession();
A more complicated example can be seen in example dir.