semlette / nfc_in_flutter

Cross-platform flutter plugin for reading and writing NFC tags. Not maintained anymore - not looking for new maintainer, fork instead.
MIT License
119 stars 119 forks source link

Strange comportement on iOs #56

Open Sreadon opened 4 years ago

Sreadon commented 4 years ago

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:

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