Search code examples
androidqr-codebarcode-scanner

How to link a website using barcode scanner


I have made an app that scans Barcodes/QR. I want to be able to scan the recipt and have it take me to that direct site.

EX. I Scan a barcode and i want it to go directly to a survey and pass up all the other website options. Such as a survey for a store, instead of typing in the whole site I would just to go there directly with a scan.


Solution

  • QRCode has this feature built-in.

    You just need to make sure the URL you encoded is a complete website URL, i.e., with the prefix http:// or https://.

    If you encode the content as www.example.org, then the URL will not be opened.