Re: [web-nfc] Join NDEFReader and NDEFWriter (#601)

Question, @beaufortfrancois @kenchris 

With filters gone, we can still create multiple NDEFReader instances, each of which has a scan() method that operate on the same NFC HW and have an `onreading` event that can take callbacks.

How should we handle this? 
1. Allow all the NDEFReader object instances, but keep a single reader in the internal slot and add the event listeners to its event.
2. Allow all the object instance, and keep all of these in the `activated reader list`. In the impl, there is a single NFC proxy, though.
3. Allow a single instance of NDEFReader in the given context and decide how to expose it: provide a getter/factory method for it, or let it be a static object, e.g. `navigator.nfc` (we used to be there).


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


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Tuesday, 29 September 2020 14:16:22 UTC