- This topic has 3 replies, 2 voices, and was last updated 13 years, 5 months ago by joe99.
-
AuthorPosts
-
joe99MemberHello.
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
support-michaelKeymaster@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.
joe99MemberThanks for your quick answer.
Can I maybe send you an email?
joe99MemberWe 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>
-
AuthorPosts