Category Archives: Google Play

Generating QR code for my app

First I created a PHP file lines-app-store.php on sharlines.com website with the following content:

<?php

$iPod = stripos($_SERVER['HTTP_USER_AGENT'],"iPod");
$iPhone = stripos($_SERVER['HTTP_USER_AGENT'],"iPhone");
$iPad = stripos($_SERVER['HTTP_USER_AGENT'],"iPad");
$macOs = stripos($_SERVER['HTTP_USER_AGENT'],"Mac");
$Android= stripos($_SERVER['HTTP_USER_AGENT'],"Android");

//check if user is using ipod, iphone or ipad...
if( $iPod || $iPhone || $iPad || $macOs)
{
        //we send these people to Apple Store
        header('Location: https://apps.apple.com/app/id6504194961');
}
else if($Android)
{
        //we send these people to Android Store
        header('Location: https://play.google.com/store/apps/details?id=net.geographx.LinesGame');
}
else
{
        //we send these people to Windows Store
        header('Location: https://www.microsoft.com/ru-ru/store/p/lines-3d/9nblggh5g9c6');
}

?>
(more…)