[web-nfc] A simultaneous tap happened on multiple NFC adapters (#222)

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

== A simultaneous tap happened on multiple NFC adapters ==
About the note following step 9.12.4 of https://w3c.github.io/web-nfc/#the-push-method

> NOTE
Multiple adapters should be used sequentially by users. There is very small likelihood that a simultaneous tap will happen on two or multiple different and connected NFC adapters. If it happens, the user will likely need to repeat the taps until success, preferably one device at a time. The error here gives an indication that the operation needs to be repeated. Otherwise the user may think the operation succeeded on all connected NFC adapters.

Would you help me understand this more? Thanks.

We got a device coming within the range, the device already passed verification, then we initiated a data transfer to it,  but if it happens to be a simultaneous tap, i.e. happening also on other NFC adapters, the transfer will fail? It's due to some error raised by the underlying platform (Android)?

Then we reject push() with "NetworkError"? This error seems not that clear that the user needs to retry and should tap on only one device at a time. Just because we cannot get a more specific transfer error indicating a simultaneous tap from the underlying platform?

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

Received on Monday, 6 May 2019 03:36:06 UTC