Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to make standard app store link on top of mobile webpage similar to other sites like youtube

When you browse to sites like youtube, decide, and many others on your iphone's safari, their mobile web show a link to their app on the top of the page with x button to close and status of app (like if it's already installed to have open button instead of install).

This looks pretty standard to many sites. Is there a script of these code that I can copy for my mobile site link to app?

Thanks.

like image 221
Steve Jai Avatar asked Dec 10 '12 22:12

Steve Jai


People also ask

What is App Store URL?

Android. We use the Application ID (package name) to identify your app inside our system. You can find this in the app's Play Store URL after 'id'. For example, in https://play.google.com/store/apps/details?id=com.company.appname the identifier would be com.


1 Answers

You just need to add this meta tag (with the relevant details filled in accordingly) to the head of the page on your mobile site that you want it to show up on:

<meta name="apple-itunes-app" content="app-id=myAppStoreID, affiliate-data=myAffiliateData, app-argument=myURL">

Apple's Developer site has documentation on it http://developer.apple.com/library/ios/#documentation/AppleApplications/Reference/SafariWebContent/PromotingAppswithAppBanners/PromotingAppswithAppBanners.html

Note that this is an iOS6+ feature though.

like image 169
Kim Avatar answered Sep 30 '22 12:09

Kim



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!