[web-nfc] Simplify process for obtaining permissions

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

== Simplify process for obtaining permissions ==
At the moment spec defines that UA should obtain user permissions 
when:
- NFCAdapter.send() is called for 'tag' target
- NFCAdapter.send() is called for 'peer' target
- When event listener is added to NFCAdapter object (for listening to 
messages)

I couldn't find any other specs that require to obtain permission from
 user when event listener is added.

I would propose to have permission checks when:
- navigator.nfc.requestAdapter() is called
- NFCAdapter.send() is called (no matter if target was 'peer', 'tag' 
or 'any')

See https://github.com/w3c/web-nfc/issues/40

Received on Tuesday, 18 August 2015 12:10:10 UTC