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

No event firing when IOS StartListening() encounters a read failure #109

Open petetataliba opened 2 years ago

petetataliba commented 2 years ago

Description

On iOS, if there is an error reading, there is no event fired to handle the missed tag reading

Steps to Reproduce

  1. start listening
  2. create a read error reading NDEF tag. i can do this by passing the phone by my tag quickly, so that it is out range after the trigger to read and the actual reading of the NDEF message

Expected Behavior

should there be an event that fires on this failure? something like Current_OniOSReadingSessionCancelled?

Actual Behavior

no event is fired that ican find, i then have no way to know the tag read has failed I cant start over or move forward. I have a wizard, and i need to know to restart the process on a failure.

Basic Information

Maybe this is not a bug, maybe there is something i am missing to catch a read failure?

Screenshots

Reproduction Link

saamerm commented 2 years ago

@petetataliba did you try to assign a function to the iOS failure event handler ?