[web-nfc] Every scan results in empty records (#613)

mrquincle has just created a new issue for https://github.com/w3c/web-nfc:

== Every scan results in empty records ==
Hi, I have tried half a dozen different NFC tags and cards. 

```
User clicked scan button
> Scan started
> Serial Number: 04:4a:2a:fa:5e:67:80
> Records: (1)
NDEFRecord {recordType: "empty", mediaType: null, id: null, encoding: null, lang: null, …}
data: null
encoding: null
id: null
lang: null
mediaType: null
recordType: "empty"
__proto__: NDEFRecord 
```
They all result in the `empty` recordType. If I just use an Android tag reader there's quite a lot of information in the NDEF records, so this seems incorrect. 

Tried on (of course with experimental web platform features enabled):
+ Chrome: 87.0.4280.66
+ Chrome: 87.0.4280.101
+ Chrome Canary: 89.0.4357.0 

I've run this on a OnePlus and a Lenovo phone.

Just using the sample code on https://googlechrome.github.io/samples/web-nfc/ (just added printing the records as well, to the console).

I don't think this has to do with the hardware (due to the fact that a utility like "NFC Tools" can easily read the memory. If there has been a regression, would be nice to know!

Please view or discuss this issue at https://github.com/w3c/web-nfc/issues/613 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Wednesday, 16 December 2020 13:22:32 UTC