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

For URL records,
`TNF_ABSOLUTE_URI `records. ---> the URL is saved in TYPE field
`TNF_WELL_KNOWN `with a type of `RTD_URI`. ---> the URL is saved in PAYLOAD
Our impl in Chromium just get the URL of them by calling https://developer.android.com/reference/android/nfc/NdefRecord.html#toUri(), which always reads from the correct field.

I'm not quite sure though, the use case mentioned here seems to me kind of out scope of web-nfc spec, it's more like a feature of Browser, like opening a page for the url read from a NFC tag, meanwhile feeding other records data to the opened page.

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

Received on Thursday, 5 September 2019 06:57:15 UTC