Closed saidbouhmouch closed 4 years ago
Hi, i created an app that reads an NFC tag. after reading the nfc tag it displays the following error :
ERROR Un-expected encoding error, UTF-8 stream truncated, or incorrect I am using: ionic 4
My code:
scanNfc(){ this.nfc.addNdefListener(() => { console.log('successfully attached ndef listener'); }, (err) => { console.log('error attaching ndef listener', err); }).subscribe((event) => { console.log('received ndef message. the tag contains: ', event.tag); console.log('decoded tag id to hexstring', this.nfc.bytesToHexString(event.tag.id)); },(error)=>{ this.toastBox(error); }); }
Maybe bad data? Closing issue since it's really old.
Hi, i created an app that reads an NFC tag. after reading the nfc tag it displays the following error :
My code: