You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jun 23, 2024. It is now read-only.
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.
Future<void> nfc() async {
print("start reading");
Stream<NDEFMessage> stream = NFC.readNDEF();
NDEFMessage tag = await stream.first;
// do something with tag content
print("read finished");
NDEFMessage msg = NDEFMessage.withRecords([
NDEFRecord.text("docmanagement:5a900ee9-003b-4777-9295-a656d8c8810a:aa351a8f-227a-4658-a672-48a319305740"),
]);
await tag.tag.write(msg);
print("write finished");
}