service workers, protocol handlers · Issue #17 · w3c/web-nfc (original) (raw)
Are service workers supported, or only visible web pages can handle NFC?
Web NFC implementations could have policies like:
- if there is an open visible page that handles NFC (i.e. has requested an adapter), let it handle it
- otherwise, if there is a single service worker running, let it handle it
- otherwise, if there are multiple service workers, ... .
Certainly, at any point of time there should be max one page that can handle NFC (reads and writes alike).
Should we use protocol handlers? like:navigator.registerProtocolHandler('web+nfc', 'http://myorigin.com?q=blabla', 'MyApp');