Open larasoft-io opened 2 years ago
I am developing a Quasar (Vuejs) Cordova mobile App and a feature that writes NFC tag. But the problem is it sometimes write on NFC tag successfully and sometimes do not.
Following is the function I am trying to use to scan NFC tag:
function onNfc(nfcEvent){ var message = [ **ndef.textRecord(444)** ]; nfc.write( message, success => { alert('NFC Tag successfully encoded'); nfc.removeNdefListener(onNfc) nfc.close(); }, error => { console.log(error); }, ); nfc.addNdefListener(onNfc, success => {console.log('here')}, error => {alert(error)}) }
Please check attached screenshot below in which you can see the scanned data. It is the case when this plugin is unable to write 444 successfully.
I am developing a Quasar (Vuejs) Cordova mobile App and a feature that writes NFC tag. But the problem is it sometimes write on NFC tag successfully and sometimes do not.
Following is the function I am trying to use to scan NFC tag:
Please check attached screenshot below in which you can see the scanned data. It is the case when this plugin is unable to write 444 successfully.