[iOS][FIX] resend to Flutter all tags, even if there's no NDEF data written - #248
Conversation
|
Hello @okadan Cc @dlopez-penbase My project is also facing a similar issue, could you release this patch, thank you so much!!! |
|
+1 |
|
@mvn-quannguyen2-dn @JernejPoligram |
|
Hello, the fix proposed by @dlopez-penbase resolves the similar issue we were experiencing: tags not being detected by the latest version of the library (4.1.1). Here's a log excerpt from when reading an undetected tag, with no errors. |
When NDEF query or read returns an error (e.g. blank NTAG213 tags), return the tag pigeon instead of nil so the tag is still surfaced to Flutter's onDiscovered callback rather than being silently dropped. Ref: okadan#248
…rors Cherry-picks the fix from okadan#248 (addressing regression okadan#244). Non-NDEF tags such as EMV payment cards reliably fail the NDEF query/read calls that convert() runs after populating tag-specific data (iso7816, iso15693, etc.). Previously that error caused the whole tag to be dropped before onDiscovered ever fired on the Dart side. Now the already-populated pigeon is still reported.
PR related to issue #244
I fixed the regression by forcing native code to send data to Flutter no matter what, even if there's no NDEF data inside of them