Re: [web-nfc] Keep (how?) or remove the record id? (#445)

As we've already been making WebNFC kind of a low-level API so it's good to abandon all those 'smartness' left from the old era, like binding record ids with the hostname of the current web page.

+1 to the following suggestion from @beaufortfrancois 

> I'd be in favor of removing this "id" constraint algorithm and let web developers do what ever they want with it.

const writer = new NDEFWriter();
await writer.push({ records: [{ recordType: 'text', data: 'hi', id: '123' }] });
...
const reader = new NDEFReader();
await reader.scan({id: '123' });
reader.onreading = event => {};

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

Received on Friday, 22 November 2019 23:58:01 UTC