[web-nfc] Allow visible, persistent, modal UI while scanning (#585)

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

== Allow visible, persistent, modal UI while scanning ==
Make sure the spec allows for a UA to implement the above and also abort after just one scan (like when user clicks cancel)

Also add a `once: true` option to `scan()` that will abort scanning when tag leaves field (to allow read and then a write). Should probably also abort after write.

^ above we are not talking about a persistent notification, but instead a modal indicator that stays visible until a tag is scanned and then disables scanning 

![image](https://user-images.githubusercontent.com/1101339/85312951-d1cb5500-b4b7-11ea-9810-b8a14031605b.png)

Option would be that the scan done would allow to easily allow a second scan (optional).

![image](https://user-images.githubusercontent.com/1101339/85313030-ec9dc980-b4b7-11ea-8641-7dbd8a95b38c.png)

This is also the approach taken by default on iOS (not "background scan").


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

Received on Wednesday, 24 June 2020 09:16:10 UTC