revtel / react-native-nfc-manager

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

Can't read NfcTechs other than IsoDep #663

Closed basarsen closed 8 months ago

basarsen commented 11 months ago

Hi. I'm using iPhone 11 Pro and my code as seen below (which is in documentation):

    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();
    }
  }

I've even tried this code as well:

const allTechs = [NfcTech.FelicaIOS, NfcTech.Iso15693IOS, NfcTech.IsoDep, NfcTech.MifareClassic, NfcTech.MifareIOS, NfcTech.MifareUltralight, NfcTech.Ndef, NfcTech.NdefFormatable, NfcTech.NfcA, NfcTech.NfcB, NfcTech.NfcF, NfcTech.NfcV];
const t = await NfcManager.requestTechnology(allTechs);
console.log(t)

but unfortunately only one of my cards which created with IsoDep technology is working. By the way, when I try rest of my cards with native IOS application, they're all working. What should I do wrong?

Thanks in advance...

github-actions[bot] commented 8 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.