New issue
Advanced search Search tips

Issue 905150 link

Starred by 1 user

Issue metadata

Status: Assigned
Owner:
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: iOS
Pri: 3
Type: Feature

Blocked on:
issue 646035



Sign in to add a comment

Need a browser public API that allows a web app to read a value after a successful QR code scan

Reported by a.sarkar...@gmail.com, Nov 14

Issue description

Steps to reproduce the problem:
Currently mobile chrome on iOS devices allows an user to scan a QR / barcode. This feature is native to the chrome search engine itself. In order for web developers to leverage this handy feature we will need an API that launches a QR code reader, process the image and either return a promise or pass the scanned value via a callback.

What is the expected behavior?

What went wrong?
N/A

Did this work before? No 

Does this work in other browsers? N/A

Chrome version: 70.0.3538.77  Channel: stable
OS Version: iOS 11.4
Flash Version:
 
Cc: eugene...@chromium.org
Labels: -Type-Bug Type-Feature
Owner: mard...@chromium.org
Status: Assigned (was: Unconfirmed)
+mardini and eugenebut.  Can you take a look?
Cc: mard...@chromium.org
Components: Mobile>iOSWeb>WebPlatform
Labels: -Pri-2 Pri-3
Owner: ajuma@chromium.org
Ali, do you know about any QR code scanner APIs in the web spec?
There isn't currently any web API for QR codes.

Given that native platforms do offer such APIs, adding such an API to the web platform sounds plausible, but we'd first need to gauge interest from other browser vendors.
If there is a consensus on implementing the API for the web platform I can volunteer to do the development work.

Blockedon: 646035
Searching some more, there's a proposal for a Shape Detection API (https://wicg.github.io/shape-detection-api/) that includes QR code support (https://wicg.github.io/shape-detection-api/#barcode-detection-api). Bug 659138 covers implementing that for Blink (Chrome on non-iOS), and bug 646035 is the launch tracking bug for that. The feature is currently in origin trials to get feedback from developers.

So I think the next step here is to wait for that API to solidify, and then we can see how to proceed on iOS.

Looks promising. The current QR code detection (Chrome's iOS implementation) uses the native iOS SDK's AVFoundation API's. Should and when this API become available as part of Blink, would the current barcode / qr code implementation be deprecated (too early to ask but just curious)? 

Chrome on iOS doesn't use Blink. If this API gets added to WebKit, we could consider removing our separate implementation at that point.
Cc: tsteiner@google.com

Sign in to add a comment