okadan / flutter-nfc-manager

A Flutter plugin for accessing the NFC features on Android and iOS.
https://pub.dev/packages/nfc_manager
MIT License
207 stars 134 forks source link

Error:nfc.platformexception(io_exception,null,null,null) #55

Open danilocatalano opened 3 years ago

danilocatalano commented 3 years ago

Hi, I have this problem with this packages in android. On the various devices it sometimes works but other times it fails. the message that comes out to me is this: nfc.platformexception(io_exception,null,null,null).

Thank you.

durgeshparekh commented 3 years ago

Hi, I also get this error when I write data that is exceeding its length then it will show this error. I erase data and format my tag then after it will work.

DiWizard commented 3 years ago

Hello! It looks like it happens (at least in my case) when I try to write a new empty unused label for the first time. After clear label using "NFC Tools" everything works fine...

DasElias commented 3 years ago

I get this error even after formatting the tag. When I try to write that particular data not with my Android phone, but rather with an app on my iPhone, I don’t get that exception.

mnurtay commented 3 years ago

Hello! I used the Mifare card. When I try call "authenticateSectorWithKeyA" method, I get this error: PlatformException(invalid_parameter, Tag is not found, null, null)

syahrizalakbar commented 1 year ago

same here, happened to me too

batoul-alani commented 1 year ago

is there any solution for this issue ?

mfundolukhwazi commented 1 year ago

Hello, did you guys find a solution to PlatformException(invalid_parameter, Tag is not found, null, null)?

mfundolukhwazi commented 1 year ago

After testing out this demo app made from this library, on the Mifare classic card details there is a timeout of 618 which I didn't know about. I was making an asynchronous call after discovering the tag to check if doesn't already exist in the db and this ate up the time and by the time i was formatting the tag to ndef, it had timed out hence the exception.

etrnljackson commented 9 months ago

I was also getting the "Tag is not found" error. In my case, I had a method inside onDiscovered that I wasn't awaiting. After adding await, I stopped getting the error.

sushant-shidore commented 3 months ago

@etrnljackson Thanks a lot for your comment. I was facing this issue since long, and then checked all methods being called inside onDiscovered. One of them was missing await. Added it and the issue just went off.