[web-nfc] What is the correct way to check whether the browser supports Web NFC API or not? (#434)

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

== What is the correct way to check whether the browser supports Web NFC API or not? ==
What is the correct way to check whether the browser supports Web NFC API or not?

In the previous version of API, I've used the following:

```js
if ('nfc' in navigator) {
  // use Web NFC API
}
```

Is

```js
if ('NDEFReader' in window && 'NDEFWriter' in window) {
  // use Web NFC API
}
```

the correct way?

It would also really nice to have a property (or something) to check whether the device has NFC chip or not.

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

Received on Tuesday, 5 November 2019 10:31:29 UTC