- From: Diego Sierra Fernandez via GitHub <sysbot+gh@w3.org>
- Date: Fri, 12 Oct 2018 13:40:58 +0000
- To: public-web-nfc@w3.org
jdiegosierra has just created a new issue for https://github.com/w3c/web-nfc: == navigator.nfc undefined == 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. `<!DOCTYPE html> <html> <head> <title>NFC</title> </head> <body> <button class="btn btn-lg btn-default" onclick="readWriteNfc()">Test NFC Read/Write</button> <p id="log"></p> <script> document.getElementById("log").innerHTML = navigator.nfc; function readWriteNfc() { try { navigator.nfc.watch((message) => { document.getElementById("log").innerHTML = message; }); } catch(err) { document.getElementById("log").innerHTML = err.message; } } </script> </body> </html>` Please view or discuss this issue at https://github.com/w3c/web-nfc/issues/161 using your GitHub account
Received on Friday, 12 October 2018 13:40:59 UTC