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 descriptionSteps 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:
,
Nov 14
Ali, do you know about any QR code scanner APIs in the web spec?
,
Nov 14
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.
,
Nov 14
If there is a consensus on implementing the API for the web platform I can volunteer to do the development work.
,
Nov 14
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.
,
Nov 14
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)?
,
Nov 14
Chrome on iOS doesn't use Blink. If this API gets added to WebKit, we could consider removing our separate implementation at that point.
,
Jan 9
|
||||
►
Sign in to add a comment |
||||
Comment 1 by justincohen@chromium.org
, Nov 14Labels: -Type-Bug Type-Feature
Owner: mard...@chromium.org
Status: Assigned (was: Unconfirmed)