semlette / nfc_in_flutter

Cross-platform flutter plugin for reading and writing NFC tags. Not maintained anymore - not looking for new maintainer, fork instead.
MIT License
120 stars 119 forks source link

"NFCTypeNameFormatNFCExternal" is being read as a record type 'unknown' in iOS #67

Open ishwaryamamidi opened 3 years ago

ishwaryamamidi commented 3 years ago

I'm trying to read a list of NdefRecords which are of different TNFs (includes mostly U, external_type, meme_media). When I try to read these records, only the records that are of TNF (typeNameFormat) 'External', is detected as 'Unknown'. I tried to print the recordTNF in the swift code (NfcInFlutterPlugin.m). Here the TNF detected is correct. Similarly, I also tried to print the recordTNF in the dart file (api.dart) and here it says the TNF is 'null'. Very strangely, this happens only for TNF external records.

I'm guessing there is some missing (or probably wrong) implementation in the swift code while trying to pass the external TNF type to the dart code. I tried a lot to investigate on this issue but no success. Has anyone else also faced this issue?