Open DasElias opened 2 years ago
Same thing here. It seems to be working but then it just stops. You can't write multiple times in a row. To be more specific, it works 9/10 times. But this one time I'm constantly getting PlatformException with this error message "write to tag error: Tag is not ndef" which makes no sense since I'm quite sure it's NDEF
This same problem is affecting me. It worked completely fine before then suddenly this starts happening.
Some insight into the problem: To me, it only happens with empty NFCs, otherwise it works fine.
Update: Running some tests, it only fails when the NFC is not formatted to Ndef on certain phones. On a phone with Android 9 works perfectly but on a phone BISON with Android 11, it seems to fail.
When I start my app and click a button (which executes the following code), I get a
PlatformException(IOError, null, null, null)
in the line, where the tag is written. This issue seems to have nothing to do with the tag itself, because when I try to write that particular string in a NFC-write-app, everything works correctly.