Re: [web-nfc] Change default compatibility value to `any` (#299)

Thanks for the idiom. I learn something new every day ;)

If the goal is to make developers aware of the technology used, how about adding the tag technology in `NFCReadingEvent` and remove it completely from `NFCScanOptions`. We already have the serial number available there.

```js
const reader = new NFCReader();
reader.scan();
reader.onreading = event => {
  switch (event.tagTechnology) {
    case 'nfc-forum': { /* ... */ };
    case 'mifare-classic': { /* ... */ };
    case 'mifare-ultralight': { /* ... */ };
  }
};
```

-- 
GitHub Notification of comment by beaufortfrancois
Please view or discuss this issue at https://github.com/w3c/web-nfc/pull/299#issuecomment-523781194 using your GitHub account

Received on Thursday, 22 August 2019 07:16:02 UTC