function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Binu 8Binu 8 

Add QR code scanner in to VF

Hi Team,

I want to add a QR Code scanner in my custom visual force page. The page is already in salesforce1 app.
When I am choosing scan option from visual force page the camera will open and scan the qr code.
I tried with jsqrcode(javascript library). But In android phones to take new photo is not working.
Only showing file explorer to choose existing files. Could you please give me a proper solution to do that?
logontokartiklogontokartik
There is a very old post by Sandeep on Developer Forums on adding this feature, dont know if you already checked this out, but if not, I would suggest here to start.

https://developer.salesforce.com/blogs/developer-relations/2012/04/bar-code-and-qr-code-scanning-using-the-mobile-sdk.html
http://maxkatz.org/2014/01/16/creating-mobile-app-with-salesforce-api-barcode-scanner-phonegap-video/

You can also search for Barcode scanner on AppExchange and find some products.


 
Binu 8Binu 8
Hi Kartik,

I already checked out the post of sandeep. I have one quick question. If I install a QR Reader application from appExchange , Can I use the class or functions of that application to take the qr codes in my visual force page. Is that possible?
logontokartiklogontokartik
Well thats a tough one to answer, because it depends on the package and the provider. From my experience, they will not allow it, but if its a free one yeah maybe?
Also, have you tried open source JS based QR libraries to integrate with Salesforce? Maybe you can check this out
https://github.com/davescruggs/ClaimBarcodeReader