revtel / react-native-nfc-manager

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

Read Citizen ID Card throught NFC #658

Closed royaldragonit closed 8 months ago

royaldragonit commented 1 year ago

Hi, I want seek advice anyone, I read Citizen ID Card throught NFC, but result not like me expected

try {
      // register for the NFC tag with NDEF in it
      await NfcManager.requestTechnology(NfcTech.Ndef);
      // the resolved tag object will contain `ndefMessage` property
      const tag = await NfcManager.getTag();
      console.warn('Tag found', tag);
    } catch (ex) {
      console.warn('Oops!', ex);
    } finally {
      // stop the nfc scanning
      NfcManager.cancelTechnologyRequest();
    }``

Result: Tag Found {"id": "08249F9C", "techTypes": ["android.nfc.tech.IsoDep", "android.nfc.tech.NfcA"]}

How to get all data on Citizen ID Card

github-actions[bot] commented 9 months 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 8 months ago

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