Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

I have an app which has versions for both Android and iPhone. So I have two URL-s for them (Market and AppStore), but I do not want to add two different QR codes to the homepage. Is there a way (online service I'd expect) to have single URL for both markets, which will detect user device and will forward immediately to suitable application version? Programmatically looks really trivial, but perhaps someone has already solved the issue.

UPDATE: It seems I had to create the service myself. Feel free to try and use it also: http://qrappdownload.appspot.com/ . You can give two URL-s and it generates QR core for URL which is universal for the two biggest platforms. The universal URL is resolved by same service, based on mobile user agent (just whether it consists Apple or Android string is checked). Downside is that QR code has to be quite large, as the URL has to include both appstore URLs and is therefore pretty long. Maybe you can shorten the URL with some URL shortening service, have not tried it.

like image 296
JaakL Avatar asked Jun 30 '11 07:06

JaakL


People also ask

Do QR codes work for both Apple and Android?

To scan a QR Code, point your smartphone's camera at a QR Code and click on the notification URL that pops up. This works with both Android phones running on Android 8 and higher and iPhones (iOS 11 or higher).

How do I create a QR code for Android and Apple?

On Android, tap the three-dot menu, Share, then QR Code to generate a code for a page. In Chrome on iOS, similarly browse as normal to a web page, tap the Share symbol, then scroll down a bit in the displayed options and tap Create A QR Code (Figure C).

Can a QR code open the app store?

Absolutely! You have the option to link it directly to your app stores without an extra landing page. When a user scans the App Store QR Code, it will automatically detect the user's smartphone's operating system and immediately open the app in the right app store.

Can you have 2 QR codes?

Yes. A typical case is when QR codes are published in different media and you want to track the scans from each separately, as well the scans of all in aggregate.


1 Answers

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 */  ?>  
like image 174
user2225638 Avatar answered Sep 22 '22 16:09

user2225638