Accessing QR Code Scan feature on iOS(introduced in Chrome 56) through JS API

799 views
Skip to first unread message

Vibhu Singhal

unread,
Apr 25, 2017, 3:21:51 PM4/25/17
to Chromium-dev
Scanning the QR code directly through Chrome is a very powerful feature and I love it. Users can now scan the codes directly through the browser app without needing another app.

However, there are requirements (I have one) where a web app wants to scan the QR code from inside the browser. I'm not sure if there is an API exposed to achieve the same through JavaScript. If it is there, could someone please point me to the resource docs. If not, it would be great if it is introduced.

Joshua Bell

unread,
Apr 25, 2017, 3:32:01 PM4/25/17
to vibhusin...@gmail.com, Chromium-dev

On Tue, Apr 25, 2017 at 12:21 PM, Vibhu Singhal <vibhusin...@gmail.com> wrote:
Scanning the QR code directly through Chrome is a very powerful feature and I love it. Users can now scan the codes directly through the browser app without needing another app.

However, there are requirements (I have one) where a web app wants to scan the QR code from inside the browser. I'm not sure if there is an API exposed to achieve the same through JavaScript. If it is there, could someone please point me to the resource docs. If not, it would be great if it is introduced.

--
--
Chromium Developers mailing list: chromi...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev
---
You received this message because you are subscribed to the Google Groups "Chromium-dev" group.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-dev/8a10d589-2fff-434c-afb5-425d6e75f81c%40chromium.org.

Jason Liu

unread,
Apr 25, 2017, 6:22:39 PM4/25/17
to jsb...@chromium.org, j...@chromium.org, vibhusin...@gmail.com, Chromium-dev
+jif

FYI, this standard is not available on iOS.  The QR code scanner is a feature of the client and there isn't currently a way to activate it through a JS API.

PhistucK

unread,
Apr 26, 2017, 1:18:43 PM4/26/17
to vibhusin...@gmail.com, Chromium-dev
No browser has shipped the shape detection API at the moment, as far as I know.
However, specifically for QR code, there is a JavaScript based parser -
(I have not tried it)


PhistucK

On Tue, Apr 25, 2017 at 10:21 PM, Vibhu Singhal <vibhusin...@gmail.com> wrote:
Scanning the QR code directly through Chrome is a very powerful feature and I love it. Users can now scan the codes directly through the browser app without needing another app.

However, there are requirements (I have one) where a web app wants to scan the QR code from inside the browser. I'm not sure if there is an API exposed to achieve the same through JavaScript. If it is there, could someone please point me to the resource docs. If not, it would be great if it is introduced.

--
--
Chromium Developers mailing list: chromi...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev
---
You received this message because you are subscribed to the Google Groups "Chromium-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-dev+unsubscribe@chromium.org.
Reply all
Reply to author
Forward
0 new messages