Re: [web-nfc] Allow a NFC tap to load a URL with NFC message payload passed to the page (#78)

I'd like to pursue this as this makes it an interesting use case for sure.

```js
const reader = new NDEFReader();
if (reader.discoveryEvent) {
  // User landed on this page from tapping a NFC tag with a URL record
  const { serialNumber, message } = reader.discoveryEvent;
}
```

Let's bikeshed on the name later. For now, I think we should expose the event (serialNumber + message) that triggered the discovery of the website use lands on. WDYT?

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

Received on Monday, 28 October 2019 07:41:29 UTC