react-native-nfc-manager icon indicating copy to clipboard operation
react-native-nfc-manager copied to clipboard

Reading multiple non-NDEF tags in a single session - iOS

Open henrycowan opened this issue 8 months ago • 3 comments

I've followed along with your newline vids and the NfcManager.registerTagEvent() works well for scanning multiple NDEF formatted cards in a persisting NFC session. The session opens, we tap away, and everything works well.

I now need to implement a similar functionality for non-NDEF formatted tags. I've attempted using NfcManager.requestTechnology() and polling with NfcManager.getTag(), but this function seems to return a previously cached tag with no way of flushing the previous tag info. The only solution seems to be to requestTech, scan tag, cancel request, re-request, scan tag and so on, but this causes the native NFC dialog to open and close (very slowly). I understand there are iOS imposed cool-off period limitations for restarting NFC sessions.

Is there any way to read multiple tags, non-NDEF formatted, in quick succession, without opening and closing the NFC session per-tag? Basically, replicate what you have achieved with the Tag Counter game but with non-NDEF formatted cards.

Seems I'm not the only one after this functionality - https://github.com/revtel/react-native-nfc-manager/issues/713

Thanks in advance!

henrycowan avatar Apr 11 '25 01:04 henrycowan

Hi are there any updates on the above issue?

henrycowan avatar Apr 29 '25 22:04 henrycowan

Have you gotting this working? I'm successfully using NfcManager.restartTechnologyRequestIOS() instead of NfcManager.requestTechnology() for reads after the first one on iOS.

Calling NfcManager.requestTechnology() repeatedly works fine for me on Android.

dcanora avatar May 19 '25 21:05 dcanora

works fine for me, thx @dcanora

arahman69 avatar May 21 '25 08:05 arahman69

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.

github-actions[bot] avatar Aug 20 '25 02:08 github-actions[bot]

This issue was closed because it has been stalled for 5 days with no activity.

github-actions[bot] avatar Sep 05 '25 02:09 github-actions[bot]