[web-nfc] Provide option for suspending NFC watchers when "push a message" algorithm is not completed

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

== Provide option for suspending NFC watchers when "push a message" 
algorithm is not completed ==
Precondition:
There are active NFC watches 
(https://w3c.github.io/web-nfc/#the-watch-method) and "push a message"
 algorithm is not completed. UA is waiting for NFC device to be within
 proximity.

When NFC device (Tag) is within proximity, NFC watcher callback would 
be called and "push a message" algorithm would be completed, thus data
 will be written to a tag.

Problem:
If webpage has a list that is updated when device touches NFC tag and 
same page is trying to write data to a tag, it would be beneficial to 
suspend read operations during write.

Possible solution:
Provide option for pushMessage() that will suspend active NFC watches 
until "push a message" algorithm is completed.
Also, NFC watchers should not be called if same device is within 
proximity after "push a message" algorithm is completed.

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

Received on Thursday, 22 October 2015 13:35:22 UTC