Re: [web-nfc] navigator.nfc undefined

As with most powerful capabilities, only content served over https is allowed to access Web NFC API. If you are using a local development environment, you may be running into this issue.

For the record, this is specified in:
https://w3c.github.io/web-nfc/#extensions-to-the-navigator-interface
https://w3c.github.io/web-nfc/#the-nfc-interface

`[SecureContext]` is to say the API is exposed only within a secure context that is spec-speak for https.

Also noted in the security policies section, see the first bullet at:
https://w3c.github.io/web-nfc/#security-policies

Hope this helps, and good luck with your further Web NFC experiments! I'm closing this issue. Any feature requests or spec bugs, please open a new issue.


-- 
GitHub Notification of comment by anssiko
Please view or discuss this issue at https://github.com/w3c/web-nfc/issues/161#issuecomment-435045028 using your GitHub account

Received on Thursday, 1 November 2018 13:44:11 UTC