[web-nfc] P2P support (#529)

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

== P2P support ==
Android is deprecating SNEP and thus the current peer to peer support

> The Simple NDEF Exchange Protocol (SNEP) is an application-level protocol suitable for sending or retrieving of application data units, in the form of NDEF messages between two NFC Forum Devices operating in NFC Forum Peer Mode

Answer from Android:
> However most of the functionality can be provided using the card emulation interface. NFC Forum type 4 tag specification describes a mechanism for NDEF messages exchange

The current P2P support is a one time operation - when read, its done, where as HCE (Host Card Emulation) most probably isn't.

It might be possible to implement the existing peer support using HCE, but actually being able to not cancel on read might also be useful and affect API design.

Thus maybe it makes more sense to add a NDEFTagEmulation object or similar, as a specialization of HCE

Please view or discuss this issue at https://github.com/w3c/web-nfc/issues/529 using your GitHub account

Received on Thursday, 9 January 2020 13:22:40 UTC