London Escorts sunderland escorts 1v1.lol unblocked yohoho 76 https://www.symbaloo.com/mix/yohoho?lang=EN yohoho https://www.symbaloo.com/mix/agariounblockedpvp https://yohoho-io.app/ https://www.symbaloo.com/mix/agariounblockedschool1?lang=EN
13.3 C
New York
Friday, October 18, 2024

React native NFC not working between ios and android


I’ve separated tsx information: AppleTechRequest.tsx for iPhone and AndroidTechRequest.tsx for Android.

Once I name the perform on iOS:

const startTechRequest = () => {
    NfcManager.requestTechnology([NfcTech.Ndef, NfcTech.NdefFormatable]).then(
      (information: any) => {
        NfcManager.getTag().then((tag: any) => {
          console.log('Apple::Tag', tag);
        });
      },
    );
  };

And on Android I name:

const writeNdef = async () => {
    strive {
      const message="Hey from S24 Extremely";
      const document = Ndef.textRecord(message);
      const bytes = Ndef.encodeMessage([record]);

      console.log('Android::Requesting');

      const tech = await NfcManager.requestTechnology(
        [NfcTech.Ndef, NfcTech.NdefFormatable]
      );

      console.log('Android::Requested');

      await NfcManager.ndefFormatableHandlerAndroid.formatNdef(bytes);

      await NfcManager.ndefHandler.writeNdefMessage(bytes);
    } catch (ex) {
      console.log('Android::Write Ndef::Catch', ex);
    } lastly {
      console.log('Android::Write Ndef::Lastly');
    }
  };

There’s the next habits:
iPhone logs: Apple::Tag {}

Android logs: Android::Requesting. it would not attain to the subsequent log message

Related Articles

Social Media Auto Publish Powered By : XYZScripts.com