Skip to content
This repository was archived by the owner on Jun 23, 2024. It is now read-only.
This repository was archived by the owner on Jun 23, 2024. It is now read-only.

PlatformException on write #98

@DasElias

Description

@DasElias

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");
  }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions