nfc_in_flutter icon indicating copy to clipboard operation
nfc_in_flutter copied to clipboard

No tag id being displayed

Open lindsay-twoblacksheep opened this issue 5 years ago • 8 comments
trafficstars

Hi I'm using version 2.0.2 and I am able to read my tag, however I am trying to read the serial number/id but it get returned as an empty string.

Any idea what could be wrong?

lindsay-twoblacksheep avatar Feb 20 '20 04:02 lindsay-twoblacksheep

Is this on Android or iOS? Also could you tell more about the tags you're using?

semlette avatar Mar 06 '20 11:03 semlette

I'm having the same issue. I'm using an NTAG213, Tag type: ISO 14443-4, running on the latest version of iOS. When I run NFC Tools on the same phone and the same NFC tag, it gives me the serial number. I'd love to be able to read that serial number using NFC_in_flutter. Thanks!

I'm using the 2.0.4 version.

James-A-White avatar Apr 10 '20 16:04 James-A-White

Same issue there with NTAG213 ISO 14443-3A, iOS - no id provided, NFC Tools displays it correctly. Android seems working fine

the-white-cat avatar May 26 '20 14:05 the-white-cat

Hi, same on my side with NTAG215. On Android it's perfect I can retrieve the tag's ID even if not NDEF formatted but on iOs the retrieved tag's ID is null.

Any ideas of how I could implement something to retrieve the tag's ID on iOs? I don't need to read / write data on the tag, just to read the tag's ID :) Tested on an iPhone 2020 SE.

Sreadon avatar Jun 14 '20 18:06 Sreadon

@Sreadon yep, we had to write custom approach for iOS using NFCTagReaderSession. However, author mentioned "tags" branch in a different discussion, but it didn't work for us:(

the-white-cat avatar Jun 14 '20 20:06 the-white-cat

Does your custom solution with NFCTagReaderSession works? May I ask an help on how to implement this if it's the case? I'm a total noob on iOs code.

Sreadon avatar Jun 14 '20 20:06 Sreadon

It works for us. The solution is to cast the tag to MiFare tag which contains id data Its quite simple, here's the link: https://developer.apple.com/documentation/corenfc/nfcmifaretag

But again, we work with mifare only

the-white-cat avatar Jun 14 '20 20:06 the-white-cat

Thanks, I'll give it a try.

Sreadon avatar Jun 14 '20 20:06 Sreadon