revtel / react-native-nfc-manager

React Native NFC module for Android & iOS
MIT License
1.33k stars 317 forks source link

Reconnect ndef when an ndef is written. #655

Closed ChristopheBelpaire closed 11 months ago

ChristopheBelpaire commented 1 year ago

On android 13, we have this kind of problem : https://stackoverflow.com/questions/75554547/nfc-getndefmessage-returns-null-after-tag-writing-on-android-13 This fix is needed in order to be able to read nfc device like NHS3100

whitedogg13 commented 1 year ago

Hi @ChristopheBelpaire I think it's better to expose an optional reconnectAfterWrite flag to this API, so the caller can specify whether they want this behavior or not.

ChristopheBelpaire commented 1 year ago

Hello @whitedogg13 Good idea, I just pushed the flag feature. (and thanks for the lib :))

ChristopheBelpaire commented 1 year ago

And also, don't hesitate to review my code. Just to verify that nothing is broken. Thanks!

whitedogg13 commented 11 months ago

@ChristopheBelpaire it's awesome! Thanks for the contribution!

whitedogg13 commented 11 months ago

included in v3.14.8