Mason240
Mason240

Reputation: 3044

Creating a link in a mobile website that will open a QR code scanner

It is possible to create a link in a mobile website that will open a QR code scanner on an iPhone or Android phone when the user clicks on it?

Specifically, I am building a site using jQuery Mobile and want to have a button that says "Scan QR Code." When the clicks on it, it will open whatever scanning app they have on their phone.

I found another similar question here, and it appears the answer is no.

Upvotes: 2

Views: 3891

Answers (2)

Jorge Cevallos
Jorge Cevallos

Reputation: 3678

This could help you:

http://qrdroid.com/web-masters.php

Create a link like this one: http://qrdroid.com/scan?q=http://www.example.com/your_page?q={CODE}

The scanner will be launched. After the user scans a code, your webpage will be opened with the scanned code as parameter.

Upvotes: 1

Raghav Sood
Raghav Sood

Reputation: 82563

On Android at least you can request the developers of the QR Scanner apps to add an Intent Filter for the URL you send the user to on click, which will then launch their app. Note that the user will still be prompted to choose between the QR Scanner and the browser(s) on the device, and there is nothing you can do about that.

Upvotes: 1

Related Questions