facebook

link to other app

  1. MobiOne Archive
  2.  > 
  3. Getting Help – General
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #318347 Reply

    joe99
    Member

    Hello.

    I would like to set a link to another itunes app.

    I have the JS Code and the html Code, but does not work.

    Can maybe someone help me?

    Thanks
    Giustino

    #318349 Reply

    support-michael
    Keymaster

    @joe99
    I’m not familiar with invoking other iOS applications directly other than through the use of navigating to a url with a specially configured scheme/protocol registered by the application. For example if my UI control’s link property = “sms:123456780” then the iPhone will invoke the Messenger app which is configured for the “sms” protocol.

    Please share with me any details about the app you wish to invoke and your approach. I will glad to help research this further.

    #318350 Reply

    joe99
    Member

    Thanks for your quick answer.
    Can I maybe send you an email?

    #318351 Reply

    joe99
    Member

    We have a digital High Class Magazine and it’s already in another app. With this link we would like to link directly to our Magazine.

    HTML

    <a href="#" onclick="startMag()">START MAG</a>

    JS

    <script type="text/javascript">
    
                            function startMag() {
    
                                if( (navigator.userAgent.match(/iPhone/i)) || (navigator.userAgent.match(/iPod/i)) || (navigator.userAgent.match(/iPad/i)) ) {
                                    // iOS devise
                                    window.location = 'XXXXXXXXXXXXXXXX&page=1';
                                    setTimeout(function(){
                                        if(confirm('You do not seem to have our App. installed, do you want to download it now?')){
                                            window.location = 'itms://itunes.apple.com/us/app/XXXXXXXXXXXXXXXXX';
                                        }
                                    }, 300);
    
                                } else {
                                    // Other device
                                    window.location = 'itms://itunes.apple.com/us/app/XXXXXXXXXXX';                    
                                }
                            }
    
                        </script>
    
Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: link to other app

You must be logged in to post in the forum log in