You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is it possible to read and write at the same time and check the UID before writing?
I've tried this, but the id is empty:
NfcManager.requestTechnology(NfcTech.Ndef).then(()=>{// return NfcManager.getTag() // <-- If this is use, it double the NFC prompt with possible `cancelTechnologyRequest` call missingreturnNfcManager.ndefHandler.getNdefMessage()}).then((tag)=>{console.log(tag?.id)// Result is null// <---- I want to check the UID hereconstbytes=Ndef.encodeMessage([Ndef.textRecord("Hello")])returnNfcManager.ndefHandler.writeNdefMessage(bytes)}).then(()=>{if(Platform.OS==="ios"){NfcManager.setAlertMessageIOS("Written")}}).finally(()=>NfcManager.cancelTechnologyRequest())
The text was updated successfully, but these errors were encountered:
Is it possible to read and write at the same time and check the UID before writing?
I've tried this, but the
id
is empty:The text was updated successfully, but these errors were encountered: