franckbour / Plugin.NFC

A Cross-Platform NFC (Near Field Communication) plugin to easily read and write NFC tags in your application.
MIT License
235 stars 68 forks source link

Write Tag Android got exception: Tag IO Error #142

Open phamquoctuan1 opened 1 year ago

phamquoctuan1 commented 1 year ago

Description

Steps to Reproduce

  1. I put breakpoint into MainPage.xaml.cs to debug
  2. then clicked Write Tag (TEXT) in App
  3. It was throw exception in ndef.Connect(); in this method WriteOrClearMessage went to this line catch (Java.IO.IOException ioex) { throw new Exception("Tag IO Error: " + ioex.Message); }

Expected Behavior Can write the tag

Actual Behavior got exception

Basic Information Only debug get that, when I run app normally is ok

Screenshots

Reproduction Link

saamerm commented 1 year ago

@phamquoctuan1 Could you please fill out all the information so we can possibly help you fix this issue?

rehnz commented 11 months ago

I am getting this same error on MAUI with Android ONLY when trying to publish with NFCNdefTypeFormat.Mime TypeFormat. WellKnown (text) seems to work fine.

image

Any guidance?