How to make QR code for BOTH Android Market and App Store [closed]
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this questionI 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. F开发者_运维技巧eel 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.
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.
Another option would be to use OmniQRCode.com. It's a service that lets you use a single QR Code. When a smartphone scans the QR Code the service detects and redirects the smartphone to the relevant app market. It also groks variations like Android 1.6 vs Android 2.2.
Maybe its a bit late, but I found those guys http://www.visualead.com/ And I loved it!
You can also use visual QR Code from QrDesign.net They support all mobile platforms such iTunes, Google play, windows phone and blackberry appworld. and wondering is that they are visuals and fancy.
You can take a look at this project:
http://m.appqr.mobi/
It lets you generate a single QRCode for Android, IOS, Windows Phone, Symbian and Blackberry. I've used it and it works - when you scan on a specific device, it directs you to their corresponding store, provided that you did put the link accurately and in the corresponding field.
精彩评论