Questions tagged [webnfc]

The web NFC API is an experimental technology, currently in a draft specification, that allows a web browser to interact with the Near Field Communication protocol of a device. Use this tag for questions related to the use of Web NFC

You can learn more about Web NFC at the following pages:

19 questions
3
votes
2 answers

How do you obtain permissions from web-nfc API?

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…
rxm
  • 71
  • 2
  • 11
3
votes
2 answers

NDEFReader in TypeScript

I'm trying to use NDEFReader() for NFC scan/write in React. This feature works from Chrome 81 (you can try it on your mobile in Chrome beta today on links below). GoogleChromeNfcSample, WhatWebCanDoTodayNfc To enable this feature, you need to go…
2
votes
2 answers

How to use Web-NFC in Chrome for iOS?

I'd like to read and write NFC tags from within browser chrome or safari on iPhone and iOS devices. Usage seems straight forward according samples and seem to work for android after activating the experimental flag in chrome. Chrome NFC…
Manuel
  • 9,112
  • 13
  • 70
  • 110
1
vote
0 answers

Module build failed with @babel/plugin-transform-typescript

I want to use the web-nfc.d.ts but an error occurs. File(https://github.com/w3c/web-nfc/blob/gh-pages/web-nfc.d.ts) Module build failed (from ./node_modules/react-scripts/node_modules/babel-loader/lib/index.js): SyntaxError:…
myjJustin
  • 11
  • 3
1
vote
0 answers

Is it possible to use the NFC ntag413 SUN feature with Web NFC API

I can't find any infos about the "SUN – Secure Unique NFC Message" fature for the Web_NFC_API Based on NTAG 413 DNA The ntag413 sends a unic NDEFMessage. Can I read that with the Web NFC API in any way or can I only read the plain text data on the…
Silvan
  • 390
  • 7
  • 24
1
vote
1 answer

How can I prevent Web NFC from crashing Chrome when navigating between routes with the NDEFReader object?

I am using the Chrome Web NFC API in a web app that runs on Android 13 in Chrome 110 to scan NFC tags. Chrome crashes when I navigate between routes that contain a component with the NDEFReader object and 'ndef.scan' call. Steps to…
ngaffer
  • 63
  • 10
1
vote
1 answer

Web-NFC: How to use web-nfc in my html5 page

This might be a silly question but after hours of search i could not come to conclusion. I need to add NFC functionality to my website where user can write information to tags while on their mobiles. Code for writing to tags looks simple but i am…
1
vote
1 answer

How to get plain text from NDEF Record object?

I am trying to read the NFC tag using Web NFC. I've received the message object, I am able to read the record message.records[0], but I am not able to get the plain text "Hello world" stored in that NFC record. scanRfid.addEventListener("click",…
Maciej K
  • 11
  • 4
0
votes
0 answers

Can the WebNFC API be used to pass messages between phones?

The WebNFC API seems like it makes it possible to read and write text between devices. However, when I tried to read/write between phones using this website: https://nfctools.net/ The phone vibrates, but then I get the error NotSupportedError: There…
akbertram
  • 1,330
  • 10
  • 16
0
votes
1 answer

Reading NFC into web application

I am building a web application, which should read information from an NFC reader connected through USB. It is supposed to work on windows desktop and linux. I need a method similar to Web NFC API, which is great for my purpose. Unfortunately, it…
0
votes
1 answer

Use Web NFC on Android Webview?

I made a React web app that reads the uid from RFID cards of my customers. This works fine with the Web NFC api on Goolge Chrome. To display the app in fullscreen mode on a tablet with NFC interface I created a simple Java App to output the web app…
morituro
  • 1
  • 1
0
votes
1 answer

Web NFC on Chrome Android

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: Web NFC Sample