nfcim / flutter_nfc_kit

Flutter plugin to provide NFC functionality on Android and iOS, including reading metadata, read & write NDEF records, and transceive layer 3 & 4 data with NFC tags / cards
https://pub.dev/packages/flutter_nfc_kit
MIT License
202 stars 124 forks source link

Not needed entitlements #15

Closed bottee closed 3 years ago

bottee commented 4 years ago

Hello,

I found an issue starting since v1.2.0.

Since that time the iOS version tries to detect different types of NFC tags:

NFCTagReaderSession(pollingOption: [.iso14443, .iso15693, .iso18092], delegate: self)

before it only used

NFCTagReaderSession(pollingOption: [.iso14443], delegate: self)

As i only use iso14443 tags in a security sensitive application, it is for me a security issue to add entitlements for unused tag technologies.

Would it be possible to add the tag type to FlutterNfcKit.poll ?

Thank you very much!

Harry-Chen commented 3 years ago

This would be useful on both Android and iOS side to allow the caller to select only the NFC technologies they want. I currently do not have much time, but will work on it and include it in the next release.

Harry-Chen commented 3 years ago

Fixed in 43c084e.