Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Timeout Occurs When Writing NDEF Well-Known Text to Smart Card Using react-native-nfc-manager #743

Open
omeryildiz opened this issue Aug 22, 2024 · 0 comments

Comments

@omeryildiz
Copy link

omeryildiz commented Aug 22, 2024

I'm experiencing an issue with the react-nfc-manager library when attempting to write NDEF well-known text to a smart card via NFC. When I send APDU commands directly using a card reader, everything works as expected. However, when I try to write data to the smart card using NFC, the write operation takes approximately 1.5 seconds, resulting in a timeout error.

It appears that any operation taking longer than around 1 second triggers this timeout issue. This severely limits the functionality of the library when dealing with more complex or slower operations.

Steps to Reproduce:

Use the react-nfc-manager library to write an NDEF well-known text record to a smart card via NFC.
Observe the timeout error occurring when the write operation exceeds 1 second.

Expected Behavior:
The library should handle write operations that take longer than 1 second without timing out.

Actual Behavior:
The write operation times out if it takes longer than approximately 1 second.

Environment:

react-nfc-manager version: 3.14.1
Operating System: Android 13, JCOP

Direct APDU commands via a card reader work without issue, suggesting that the problem is specific to the NFC communication handled by react-nfc-manager.

Is there a way to adjust the timeout settings or optimize the library to handle operations that take longer than 1 second? Any guidance on how to resolve this issue would be greatly appreciated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant