Market url for Android???

Discussion in 'Hacks and Advanced Features' started by ckgreenman, Dec 24, 2009.

  1. ckgreenman New Member

    Hello,
    I just installed tapatalk on my forum and while looking at the template code, I noticed it only specifies the URL for iPhone. Does anyone know the proper URL format to allow users to click a link on Android and be redirected to a market URL for the Tapatalk app?

    Thanks
    1 people like this.
  2. iFonz Tapatalk Fan Boi

    oh wow i never thought about that myself
  3. winter Tapatalk Master

    Thanks! I think it is a great idea. I have updated the optional installation instruction to include Android. Check it out! Alternatively let me paste it here:

    Code:
    <script type="text/javascript"> 
    if (document.cookie.indexOf("tapatalk_redirect=false") < 0) {
        if((navigator.userAgent.match(/iPhone/i)) || (navigator.userAgent.match(/iPod/i))) {
            if (confirm("This forum is iPhone Native! Click OK to learn more about Tapatalk iPhone.")) {            
                document.cookie = "tapatalk_redirect=false"; 
                window.location = "http://itunes.apple.com/WebObjects/MZStore.woa/wa/viewSoftware?id=307880732&mt=8";
            } else {
                setTapatalkCookies();
            }
        } else if(navigator.userAgent.match(/android/i)) {
            if (confirm("This forum is Android Native! Click OK to learn more about Tapatalk Android.")) {            
                document.cookie = "tapatalk_redirect=false"; 
                window.location = "market://search?q=tapatalk";
            } else {
                setTapatalkCookies();
            }
        }
    }
    
    function setTapatalkCookies() {
        var date = new Date();
        var days = 30;
        date.setTime(date.getTime()+(days*24*60*60*1000));
        var expires = "; expires="+ date.toGMTString();
        document.cookie = "tapatalk_redirect=false" + expires; 
    }
    </script>
    
    
    3 people like this.
  4. ckgreenman New Member

    Awesome. Thanks for the code.
  5. m_k New Member

    I posted this in another thread as well. These are QR codes for both the free and paid versions of the Android app -->

    tapatalk_qr_code.gif
  6. Jinx13 New Member

    Tried to download and I get "the requested item could not be found" Does that mean the free version isn't available for my phone?

Share This Page