revtel / react-native-nfc-manager

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

getNdefMessage() method always return error #630

Closed MayMyatThu1995 closed 1 year ago

MayMyatThu1995 commented 1 year ago

getNdefMessage() method always return error like this [Error: java.lang.NullPointerException: Attempt to invoke virtual method 'android.nfc.NdefMessage android.nfc.tech.Ndef.getNdefMessage()' on a null object reference]

The tag value I've got is {"id": "03FE001000489911", "techTypes": ["android.nfc.tech.NfcF"]}

Even though TRUE returns when i call this function ==> await NfcManager.isSupported(), why getNdefMessage() is returned above error.

So how to get the actual value from {"id": "03FE001000489911", "techTypes": ["android.nfc.tech.NfcF"]} tag? Could you please help me?

github-actions[bot] commented 1 year ago

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] commented 1 year ago

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