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

Read the same tag sometime will have diffirent information.

Open yanwzhang opened this issue 2 years ago • 6 comments

react-native: 0.64.1 android: 12

When I read one tag, sometime will occur diffrent read result. like this:

image image

it is the same id, but sometimes it will miss ndefMessage.

yanwzhang avatar Jul 05 '22 08:07 yanwzhang

react-native-nfc-manager: 3.11.0

yanwzhang avatar Jul 05 '22 08:07 yanwzhang

when I use NFC reWriter to scan the same NFC tags. it's the diffrent result: image the top screen doesn't have nefMessage and other info. but when I scan again, it will have: image

yanwzhang avatar Jul 06 '22 12:07 yanwzhang

Have the same issue on iOS in our prod app. I'm not able to reproduce it myself but I can see it in our Firebase Crashlytics logs, ndefMessage is sometimes not present.

Capture d’écran, le 2022-07-11 à 13 31 40

react: 0.64.1 react-native-nfc-manager: 3.13.2

EDIT: I am able to consistently reproduce the issue. I initiate the NFC read when I'm already at certain distance of the tag. see the video below:

https://user-images.githubusercontent.com/18152986/179296222-fb421b81-3430-40e7-b65a-e55edad9fbef.mp4

@yanwzhang My solution to fix it for now was to implement the old style use with event listening as shown on the module's page, hope it helps!

SofianeToumert avatar Jul 11 '22 17:07 SofianeToumert

Have the same issue on iOS in our prod app. I'm not able to reproduce it myself but I can see it in our Firebase Crashlytics logs, ndefMessage is sometimes not present.

Capture d’écran, le 2022-07-11 à 13 31 40

react: 0.64.1 react-native-nfc-manager: 3.13.2

EDIT: I am able to consistently reproduce the issue. I initiate the NFC read when I'm already at certain distance of the tag. see the video below:

PXL_20220712_145253641.mp4 @yanwzhang My solution to fix it for now was to implement the old style use with event listening as shown on the module's page, hope it helps!

it seems to work to implement the old style use with event listening, I'll try more times to test this way, thank you.

yanwzhang avatar Jul 18 '22 04:07 yanwzhang

Have the same issue on iOS in our prod app. I'm not able to reproduce it myself but I can see it in our Firebase Crashlytics logs, ndefMessage is sometimes not present.

Capture d’écran, le 2022-07-11 à 13 31 40

react: 0.64.1 react-native-nfc-manager: 3.13.2

EDIT: I am able to consistently reproduce the issue. I initiate the NFC read when I'm already at certain distance of the tag. see the video below:

PXL_20220712_145253641.mp4 @yanwzhang My solution to fix it for now was to implement the old style use with event listening as shown on the module's page, hope it helps!

I test many times, it will some time occur the same situation, ndefMessage sometimes doesn't have.

yanwzhang avatar Jul 18 '22 04:07 yanwzhang

@yanwzhang Hmm interesting, I was not able to reproduce it anymore with the old style implementation. Do you see a difference in something you do between a try that succeeds and one that does not ? For example in my previous message I've shown that I had the issue (the error screen that appears is because of missing ndefMessage) when starting the NFC read at a certain distance from the tag then slowly getting closer.

Do you see a pattern that leads to you having those missing ndef ?

SofianeToumert avatar Jul 19 '22 12:07 SofianeToumert

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 Oct 18 '22 02:10 github-actions[bot]

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

github-actions[bot] avatar Nov 03 '22 02:11 github-actions[bot]

Still occur for me. I tried to read tag with other app like NFC Tools and I reproduce the same situation. According to my analytics, this happens on both ios 15 and 16

Type: NXP NTAG215 Data format: NFC Type 2

gigeos avatar Jan 06 '23 17:01 gigeos