How to make QR code for BOTH Android Market and App Store [closed] How to make QR code for BOTH Android Market and App Store [closed] ios ios

How to make QR code for BOTH Android Market and App Store [closed]


A QR code is just a link / URL, soo point to a URL on your site and use PHP to determines if the user is using Android or iPhone. Then do a PHP header location to the iPhone app URL if it is iPhone, or Android app if it is Android.

Here is the PHP code:

<?php**//Handy Code Provided by STEPHENCARR.NET**$iPod = stripos($_SERVER['HTTP_USER_AGENT'],"iPod");$iPhone = stripos($_SERVER['HTTP_USER_AGENT'],"iPhone");$iPad = stripos($_SERVER['HTTP_USER_AGENT'],"iPad");$Android= stripos($_SERVER['HTTP_USER_AGENT'],"Android");//check if user is using ipod, iphone or ipad...if( $iPod || $iPhone || $iPad ){        //we send these people to Apple Store        header('Location: http://www.example.com/'); // <-apple store link here}else if($Android){        //we send these people to Android Store        header('Location: http://www.example.com/'); // <-android store link here}**//Handy Code Provided by STEPHENCARR.NET**?> 


QR codes can contain any text. The convention for their use as a link to the Web is to contain one URL. Most QR reader apps will then load the webpage referenced by the URL embedded in the QR code.

There is no way to embed information in a QR code that directly links to two different URLs when read by any QR code reader. A custom QR code reader could parse a QR code with two URLs and decide which URL to follow, but you'll have to figure out a way to get your custom QR reader to your customers.

The functionality you're looking for can reside at the URL in the QR code. The embedded URL could link to a webpage that checks user agents and redirects appropriately. If the Safari on iOS user agent is detected, redirect to Apple's App Store. An Android user agent would be redirected to an appropriate app store. I would set all other user agents to go to a product page with links to both stores.

If I was doing this, I would investigate sending all users to a product page. The opportunity to engage in further marketing of the product, sharing more information with the potential customer may result in better sales. I'd set up some A-B testing to see which is better.


Yet another option is to use http://onelink.to which is an easy to use service for the same purpose.