Home » Open Mobile Apps in the Native Program.

Open Mobile Apps in the Native Program.

Open applications for iTunes, Google Play and Blackberry App World in the native program is pretty straight forward. You have to know what the item is that you are looking for to link to. If you are not a developer of an app and just want to link to them but also have them open in the native program such as iTunes you need some script to help you out.

  • Apple iTunes: Use the app assigned url name such as in this example: angry-birds-star-wars.
    You can get this from the app store in the web browser.
  • Google Play: Use the id associated with your app such as in this case: id=com.rovio.angrybirds.
    You can get this from the app store in the web browser.
  • Blackberry App World: Use the app content number such as in this example: 74883.
    You can get this from the app store in the web browser.

For the header part of your document:

<script>
(function(d,c){var a,b,g,e;a=d.createElement("script");a.type="text/javascript";a.async=!0;a.src=("https:"===d.location.protocol?"https:":"http:")+'//api.mixpanel.com/site_media/js/api/mixpanel.2.js';b=d.getElementsByTagName("script")[0];b.parentNode.insertBefore(a,b);c._i=[];c.init=function(a,d,f){var b=c;"undefined"!==typeof f?b=c[f]=[]:f="mixpanel";g="disable track track_pageview track_links track_forms register register_once unregister identify name_tag set_config".split(" ");
for(e=0;e<g.length;e++)(function(a){b[a]=function(){b.push([a].concat(Array.prototype.slice.call(arguments,0)))}})(g[e]);c._i.push([a,d,f])};window.mixpanel=c})(document,[]);
mixpanel.init("892395330de05c7171c737ff9505bc7d");
mixpanel.track_links("#apple", "Clicked iOS download badge on homepage");
mixpanel.track_links("#android", "Clicked Android download badge on homepage");
mixpanel.track_links("#blackberry", "Clicked BlackBerry download badge on homepage");
</script>

For the body part of your document:

<script src='https://lsa.measure.ly/lsa-loader.js' type='text/javascript'></script>
<p><a class='store apple' href='http://www.itunes.com/angry-birds-star-wars' id='apple' title='App Store'> Link text for iTunes or an image</a></p>
<p><a class='store android' href='https://play.google.com/store/apps/details?id=com.rovio.angrybirds' id='android' title='Google Play'> Link text for Android or an image </a></span></p>
<p><a class='store blackberry' href='http://appworld.blackberry.com/webstore/content/74883' id='blackberry' title=''> Link text for BB or an image </a></span> </p>

Below is the working example:

Link text for iTunes or an image

Link text for Android or an image

Link text for BB or an image

Disclaimer: I know this works for iTunes, but do not have a BB or Android device to check, so until I hear otherwise or am able to check I am assuming the above is true. I do not have info as to the workings of Windows Mobile.