Closed ElegantSoft closed 4 years ago
I am trying to send data from IOS 13 on IPhone 7 to android device but I get error on IOS while send data
const sendNFCMessage = async (): Promise<void> => { try { await NfcManager.start(); const message = Ndef.encodeMessage([ Ndef.textRecord(JSON.stringify(data)), ]); console.log(message); await NfcManager.writeNdefMessage(message); // resp. } catch (e) { console.log("error while send nfc message", e); cleanNFC(); } };
Hi @ElegantSoft you can only writeNdefMessage into a NFC tag, not a mobile device. (What you're looking for is called P2P mode, however it's not supported on iOS)
writeNdefMessage
I am trying to send data from IOS 13 on IPhone 7 to android device but I get error on IOS while send data