revtel / react-native-nfc-manager

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

when write link using NfcManager.ndefHandler.writeNdefMessage some string getting replaced #643

Closed dev224511 closed 10 months ago

dev224511 commented 1 year ago

Hi I have write a link in NFC tag but after link is write and getting it back some string got replaced

const tag = await NfcManager.requestTechnology(NfcTech.Ndef);
      const tech = getTechList(tag)
      if (tech.includes(NfcTech.Ndef)) {
        const sharePublicUrl = configEnv.SHARE_PUBLIC_URL;
        const url = 'https://www.google.com/search?q=test'
        const message = [
          Ndef.uriRecord(url),
        ];
        const bytes = Ndef.encodeMessage(message);
        await NfcManager.ndefHandler.writeNdefMessage(bytes);

and when i read data from NFC tag it got replaced some string to https://www.google.com/search?q=t0489

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

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