ColdTree ColdTree - 2 months ago 12
iOS Question

iOS Safari shows apps that are installed. How does this work? Meta tag?

Have you noticed that some sites in iOS safari will show a banner to let the user know the app is installed? How does this work? Is this a meta tag?

Airbnb example showing a banner to open the app

Thanks

Answer

You should include <meta name="apple-itunes-app" content="app-id=myAppStoreID, affiliate-data=myAffiliateData, app-argument=myURL"> in your webpage's head.

Please check this link for more information: http://developer.apple.com/library/ios/#documentation/AppleApplications/Reference/SafariWebContent/PromotingAppswithAppBanners/PromotingAppswithAppBanners.html

NOTE: It only works with iOS6 or later!