New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
navigator.nfc undefined #161
Comments
What is your phone? And what browser do you use? |
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:
Also noted in the security policies section, see the first bullet at: 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. |
@anssiko |
@anujwebkul |
@beaufortfrancois but when I am using reader.scan(); then it gives the below error. |
According to https://cs.chromium.org/chromium/src/third_party/blink/renderer/modules/nfc/nfc_proxy.cc?type=cs&sq=package:chromium&g=0&l=201, it looks like NFC support is not available on your device. Which Android device do you have? |
@anujwebkul : Can you try on Chrome canary and let us know if the issue still persists ? |
It's working on chrome beta like a charm, Thanks :) |
But not Chrome canary? |
I tried the canary Is there a chance that you forgot to turn on the flag |
When I test my phone in this web https://whatwebcando.today/nfc.html I'ts okey.
However when I use my own web navigator.nfc is undefined.
The text was updated successfully, but these errors were encountered: