{"action":"created","issue":{"url":"https://api.github.com/repos/w3c/web-nfc/issues/77","labels_url":"https://api.github.com/repos/w3c/web-nfc/issues/77/labels{/name}","comments_url":"https://api.github.com/repos/w3c/web-nfc/issues/77/comments","events_url":"https://api.github.com/repos/w3c/web-nfc/issues/77/events","html_url":"https://github.com/w3c/web-nfc/issues/77","id":112804584,"number":77,"title":"Provide option for suspending NFC watchers when \"push a message\" algorithm is not completed","user":{"login":"alexshalamov","id":1001009,"avatar_url":"https://avatars.githubusercontent.com/u/1001009?v=3","gravatar_id":"","url":"https://api.github.com/users/alexshalamov","html_url":"https://github.com/alexshalamov","followers_url":"https://api.github.com/users/alexshalamov/followers","following_url":"https://api.github.com/users/alexshalamov/following{/other_user}","gists_url":"https://api.github.com/users/alexshalamov/gists{/gist_id}","starred_url":"https://api.github.com/users/alexshalamov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexshalamov/subscriptions","organizations_url":"https://api.github.com/users/alexshalamov/orgs","repos_url":"https://api.github.com/users/alexshalamov/repos","events_url":"https://api.github.com/users/alexshalamov/events{/privacy}","received_events_url":"https://api.github.com/users/alexshalamov/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-10-22T13:35:19Z","updated_at":"2015-10-23T08:51:13Z","closed_at":null,"body":"Precondition:\r\nThere 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.\r\n\r\nWhen 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.\r\n\r\nProblem:\r\nIf 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.\r\n\r\nPossible solution:\r\nProvide option for pushMessage() that will suspend active NFC watches until \"push a message\" algorithm is completed.\r\nAlso, NFC watchers should not be called if same device is within proximity after \"push a message\" algorithm is completed."},"comment":{"url":"https://api.github.com/repos/w3c/web-nfc/issues/comments/150516666","html_url":"https://github.com/w3c/web-nfc/issues/77#issuecomment-150516666","issue_url":"https://api.github.com/repos/w3c/web-nfc/issues/77","id":150516666,"user":{"login":"zolkis","id":996058,"avatar_url":"https://avatars.githubusercontent.com/u/996058?v=3","gravatar_id":"","url":"https://api.github.com/users/zolkis","html_url":"https://github.com/zolkis","followers_url":"https://api.github.com/users/zolkis/followers","following_url":"https://api.github.com/users/zolkis/following{/other_user}","gists_url":"https://api.github.com/users/zolkis/gists{/gist_id}","starred_url":"https://api.github.com/users/zolkis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zolkis/subscriptions","organizations_url":"https://api.github.com/users/zolkis/orgs","repos_url":"https://api.github.com/users/zolkis/repos","events_url":"https://api.github.com/users/zolkis/events{/privacy}","received_events_url":"https://api.github.com/users/zolkis/received_events","type":"User","site_admin":false},"created_at":"2015-10-23T08:51:13Z","updated_at":"2015-10-23T08:51:13Z","body":"I like the flag idea, but not on push. IMO the watches should control this (their own) behavior. \r\nIt should be a watch option something like ```skipReadOnPush```, with a default value ```true```.\r\nThen we describe this in the watch steps."}}