New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 717899 link

Starred by 1 user

Issue metadata

Status: WontFix
Owner:
Email to this user bounced
Closed: May 2017
Components:
EstimatedDays: ----
NextAction: ----
OS: Android
Pri: 2
Type: Bug-Regression



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 description

Steps 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
 

Comment 1 by canx....@intel.com, May 3 2017

Cc: alexander.shalamov@intel.com, wanming.lin@intel.com
Please take a look. Thanks.
Components: Blink>NFC
Owner: alexande...@intel.com
Status: WontFix (was: Unconfirmed)
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.
@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.
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."


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 ?
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@?
Nexus 5 - 60.0.3089
PixelXL - 60.0.3089

Also, tried with chromium built from master, to test fix for timeout issue.

Did you enable WebNFC feature flag in chrome://flags?
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