web-nfc | Web NFC Community Group and the Web NFC API | Binary Executable Format library

 by   w3c HTML Version: Current License: Non-SPDX

kandi X-RAY | web-nfc Summary

kandi X-RAY | web-nfc Summary

web-nfc is a HTML library typically used in Programming Style, Binary Executable Format applications. web-nfc has no bugs, it has no vulnerabilities and it has low support. However web-nfc has a Non-SPDX License. You can download it from GitHub.

This is the repository for the Web NFC Community Group and the Web NFC API specification.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              web-nfc has a low active ecosystem.
              It has 255 star(s) with 61 fork(s). There are 49 watchers for this library.
              OutlinedDot
              It had no major release in the last 6 months.
              There are 36 open issues and 263 have been closed. On average issues are closed in 126 days. There are 3 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of web-nfc is current.

            kandi-Quality Quality

              web-nfc has 0 bugs and 0 code smells.

            kandi-Security Security

              web-nfc has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              web-nfc code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              web-nfc has a Non-SPDX License.
              Non-SPDX licenses can be open source with a non SPDX compliant license, or non open source licenses, and you need to review them closely before use.

            kandi-Reuse Reuse

              web-nfc releases are not available. You will need to build from source code and install.
              It has 23396 lines of code, 0 functions and 13 files.
              It has low code complexity. Code complexity directly impacts maintainability of the code.

            Top functions reviewed by kandi - BETA

            kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.
            Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of web-nfc
            Get all kandi verified functions for this library.

            web-nfc Key Features

            No Key Features are available at this moment for web-nfc.

            web-nfc Examples and Code Snippets

            No Code Snippets are available at this moment for web-nfc.

            Community Discussions

            QUESTION

            Web NFC on Chrome Android
            Asked 2021-Dec-01 at 07:25

            I am trying to explore on web NFC and found a simple sample (https://googlechrome.github.io/samples/web-nfc/). So, I copy the sample code to test it on local:

            ...

            ANSWER

            Answered 2021-Dec-01 at 07:25

            As documented in https://web.dev/nfc/#security-and-permissions, Web NFC is only available in secure browsing contexts. It means you either have to serve your webpage over https:// or localhost such as http://127.0.0.1 or http://localhost.

            • If you have installed npm, you can use npx http-serve.
            • If you have installed Python 2, use python -m SimpleHTTPServer
            • If you have installed Python 3, use python -m http.server

            Source https://stackoverflow.com/questions/70178679

            QUESTION

            How do you obtain permissions from web-nfc API?
            Asked 2020-Dec-16 at 13:55

            I'm trying to get Web NFC to work through the Web NFC API, but I can't get it past an error message of NotAllowedError: NFC permission request denied.

            I'm using this on Chrome 89 Dev on a Windows 10 computer, and the source code is being run locally.

            I have tried the examples posted on the Internet also, including the Google sample but it returns the same error. I'm not concerned with it being experimental at this point as referring to this does show it has successfully passed the necessary tests, including permissions.

            The HTML/JS code I'm using is below, and I've read the specification point 9.3, but I can't make sense of it to write it as code, so is there a guideline algorithm that would be helpful here to resolve this?

            ...

            ANSWER

            Answered 2020-Dec-15 at 10:27

            From https://web.dev/nfc/#security-and-permissions

            Web NFC is only available to top-level frames and secure browsing contexts (HTTPS only). Origins must first request the "nfc" permission while handling a user gesture (e.g a button click). The NDEFReader scan() and write() methods trigger a user prompt, if access was not previously granted.

            I guess you are running from a file:// URL as you said "locally" which is not supported.
            You need to host it from a local web server using a https:// URL

            Once in the right scope trying to scan or write should trigger a user prompt.

            You can also check permissions see https://web.dev/nfc/#check-for-permission

            Update:
            So I tried the sample page https://googlechrome.github.io/samples/web-nfc/

            And this works for me on Android Chrome 87 with "Experimental Web Platform features" enabled

            When you hit the scan button A dialog asking for permission pops up.

            Comparing the code in this sample to yours I notice that does:-

            Source https://stackoverflow.com/questions/65271299

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install web-nfc

            You can download it from GitHub.

            Support

            Web NFC explainedWeb NFC SpecificationWeb NFC Use CasesWeb NFC Security and Privacy ConsiderationsWeb NFC Security and Privacy QuestionnaireWeb NFC Community Group Charter
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/w3c/web-nfc.git

          • CLI

            gh repo clone w3c/web-nfc

          • sshUrl

            git@github.com:w3c/web-nfc.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link