wpt.fyi | web-platform-tests dashboard | Web Framework library
kandi X-RAY | wpt.fyi Summary
kandi X-RAY | wpt.fyi Summary
wpt.fyi is a dashboard of cross-browser results for web-platform-tests, the data for which is uploaded by external services, primarily from various CI integrations in the wpt repo. Backend: An App Engine app for storing test run metadata and serving HTML. Frontend: Polymer elements for loading and visualizing test results.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Main entry point .
- searchHandlerImpl implements the searchHandler interface .
- unmarshalQ unmarshals a RawQuery .
- tcStatusWebhookHandler handles webhook requests
- getDiffSummary returns a summary for the current check run .
- handleCheckRunEvent handles check run event .
- processBuild fetches a build from the given build ID .
- updateCheckHandler updates the check filter parameters
- GetCheckSuiteEventInfo returns the EventInfo for a CheckSuiteEvent
- HandleResultsUpload handles the upload request .
wpt.fyi Key Features
wpt.fyi Examples and Code Snippets
Community Discussions
Trending Discussions on wpt.fyi
QUESTION
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:27From 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:-
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install wpt.fyi
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page