Closed janipiippow closed 4 years ago
I am about to take a closer look. I think the error occurs between line 391 and 395 in NfcInFlutterPlugin.m.
You are most likely right. After searching, I think that wellKnowTypeTextPayloadWithString
should probably be changed to wellKnownTypeTextPayloadWithString
on row 393. wellKnowTypeTextPayloadWithString
is marked depracated and that is probably the exception is thrown.
Good spot!
Replacing it with wellKnownTypeTextPayloadWithString
seems to do the trick.
- wellKnowTypeTextPayloadWithString
+ wellKnownTypeTextPayloadWithString
The only difference is a 'n'. I wonder if it was a typo 🤔
I'll release a new version with the fix shortly.
I have released version v2.0.1
with the fix.
Nice, thank you!
For some reason using NDEFRecord.text or NDEFRecord.custom with type "T" and TNF Well Known when writing on a tag on iOS causes an exception listed below:
Other TNF's do not seem to cause this with same payload. However, my tags work only with Well Known type T write messages (tested with Android) so I would appreciate, if someone have more insight on how to fix this.