nfc_in_flutter icon indicating copy to clipboard operation
nfc_in_flutter copied to clipboard

Strange comportement on iOs

Open Sreadon opened this issue 5 years ago • 0 comments

Hi,

First of all, thanks for this plugin.

First point, which I think is not a bug: In my app, when I try to scan a non NDEF formatted tag with an iPhone, the plugin is not returning anything, could it be possible to return an exception? Like NDEFReadingUnsupportedFormatException? Just to be able to display a message on the UI saying that the tag is not a correctly formated tag.

Second point, which I think is a bug: let's say I have two tags:

  • TAG A: NDEF FORMATED with an URL - MODEL NXP NTAG215
  • TAG B: NON NDEF FORMATED without any data - MODEL NXP NTAG215

On iOs, if I launch the scanning process, approach the TAG B the phone don't return anything, but then, if I try to scan (without cancelling the scanning session) the TAG A, the plugin don't return anything either. If I scan the TAG A first, everything is fine. It seems like scanning a non NDEF formatted tag brakes the scanning session and the only way to debug it seems to be cancelling and relaunching it.

NB: I'm using the latest GitHub version of the plugin, which really improved the NFC error handling compared to version 2.0.0.4.

Thanks

Sreadon avatar Jul 06 '20 12:07 Sreadon