react-native-nfc-manager
react-native-nfc-manager copied to clipboard
Read the same tag sometime will have diffirent information.
react-native: 0.64.1 android: 12
When I read one tag, sometime will occur diffrent read result. like this:
![image](https://user-images.githubusercontent.com/64258970/177281387-ad1f8fd0-4045-4ec5-b12d-817818e96941.png)
![image](https://user-images.githubusercontent.com/64258970/177281444-88bf7b4f-3445-4caa-8d0e-92855f4dcbb8.png)
it is the same id, but sometimes it will miss ndefMessage.
react-native-nfc-manager: 3.11.0
when I use NFC reWriter to scan the same NFC tags.
it's the diffrent result:
the top screen doesn't have nefMessage and other info. but when I scan again, it will have:
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.
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!
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.
react
: 0.64.1react-native-nfc-manager
: 3.13.2EDIT: 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.
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.
react
: 0.64.1react-native-nfc-manager
: 3.13.2EDIT: 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 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 ?
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.
This issue was closed because it has been stalled for 5 days with no activity.
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