Closed XxCodoxX closed 3 years ago
I use this example https://googlechrome.github.io/samples/web-nfc/ and I have a question about how do I get plain text from "log(> Records: (${message.records.length}));" this code
> Records: (${message.records.length})
See https://web.dev/nfc/#read-and-write-a-text-record
const textDecoder = new TextDecoder(record.encoding); console.log(`Text: ${textDecoder.decode(record.data)} (${record.lang})`);
I use this example https://googlechrome.github.io/samples/web-nfc/ and I have a question about how do I get plain text from "log(
> Records: (${message.records.length})
);" this code