Issue metadata
Sign in to add a comment
|
[webnfc]NFC tag always be read by System NFC Reader
Reported by
canx....@intel.com,
May 3 2017
|
||||||||||||||||||||
Issue descriptionSteps to reproduce the problem: Test Case: All of the manual test which need to tap an NFC tag to device. For example: https://thewebera.github.io/web-test-suite/web-nfc/nfc/nfc_push_arraybuffer-manual.https.html 1. Run test case 2. Tap an NFC tag to device. What is the expected behavior? All the function works fine. What went wrong? When try to read NFC tag from Chrome browser, System NFC Reader always pop up and test will timeout soon. Did this work before? Yes 60.0.3074.0 Does this work in other browsers? N/A Chrome version: 60.0.3087.3 Channel: canary OS Version: Nexus 7 (Android 5.1) Flash Version: Shockwave Flash 25.0 r0
,
May 4 2017
This is expected behavior. If you execute nfc.push, after it succeeds webpage will release nfc hw resources and system will read tag immediately if it is in proximity. Please reopen if you have more information or think this is a bug.
,
May 4 2017
@alexander.shalamov, the problem is that the system always read tag before the webpage, which leads to the webpage never read the data successfully, result in timeout. It is a regression.
,
May 4 2017
Works as expected on PixelXL https://cdn.rawgit.com/alexshalamov/4ea3b68e309cdd29360a35a7072c6567/raw/fb780e668fece6f6d6fec3351e50dca8481d789f/push_and_watch.html Gist: https://gist.github.com/alexshalamov/4ea3b68e309cdd29360a35a7072c6567 What device do you use for testing?
,
May 5 2017
I tried following devices(unfortunately we have no PixelXL), still not work. Devices: Nexus 5 (Android 5.1.1), Nexus 7(Android 5.1.1), Pixel (Android 7.1) Chrome Canary: 60.0.3089.0 And sometimes there's an error shown in the console: "Uncaught (in promise) DOMException: NFC operation not supported."
,
May 5 2017
Works for me on following devices PixelXL - 7.1.2 Nexus 5 - 6.0.1 FYI, there was a bug in Android's NFC subsystem (in Nougat) that was making impossible to write formatted tags, https://issuetracker.google.com/issues/37125844 looks like it is fixed in 7.1.2 By the way, are you enabling WebNFC feature flag from chrome://flags ?
,
May 5 2017
We tried Nexus 5 - 6.0.1, the issue can still reproduce on Chrome Canary: 60.0.3089.0, but it works on latest Chrome Stable: 58.0.3029.83. What's the version of Chrome you tried? alexander.shalamov@?
,
May 5 2017
Nexus 5 - 60.0.3089 PixelXL - 60.0.3089 Also, tried with chromium built from master, to test fix for timeout issue.
,
May 5 2017
Did you enable WebNFC feature flag in chrome://flags?
,
May 8 2017
Oh, sorry, I didn't realize there's a new flag: "WebNFC Android", it works after enable the flag. |
|||||||||||||||||||||
►
Sign in to add a comment |
|||||||||||||||||||||
Comment 1 by canx....@intel.com
, May 3 2017