Smart App Banner: promote your app right on your website

With one line of HTML, Safari on iPhone shows a Smart App Banner for your app. Here's how to set it up and send visitors straight to the right screen.

2 min readby Luca Ring

A Smart App Banner is the slim strip Safari shows at the top of a website on iPhone: app icon, name, rating and a button to get or open the app. All it takes is a single line of HTML, and every visit to your website can turn into a download.

The banner comes straight from Apple, fits every design and knows on its own whether the app is already installed. In that case it says “Open” instead of “Get”.

One line in the page head

You turn the banner on with a meta tag in the head of your page. Replace the sample number with your app's ID. You'll find it in App Store Connect or in your App Store URL after “id”:

<meta name="apple-itunes-app" content="app-id=123456789">

That's all. Safari on iPhone and iPad pulls the name, icon and rating from the App Store by itself.

Land in the right place inside the app

With app-argument you pass a URL to your app. If the app is installed and someone taps “Open”, it can show exactly the content they were just looking at on the website:

<meta name="apple-itunes-app"
      content="app-id=123456789, app-argument=https://example.com/recipe/42">

Universal Links work even better for this. They make regular links to your website open the app directly when it's installed. To set them up, host an apple-app-site-association file on your server and add the domain under Associated Domains in Xcode.

Where the banner shows up, and where it doesn't

  • Only in Safari on iPhone and iPad: other browsers and the Mac don't display it.
  • People can dismiss it: once closed, it stays hidden on that page for a while.
  • Only for released apps: the ID has to belong to an app that's live on the App Store.

Add the banner to pages that are really about the app, like the home page and the app page. On legal pages or your imprint it mostly gets in the way.

Banner, website and App Store working together

The banner doesn't replace a good app page, it complements it. How to structure a website for your app is covered in a website for your app. And for a tap on “Get” to turn into an actual download, your App Store listing needs strong copy and screenshots; more on that in App Store optimization.

In short

One line of HTML, a banner made by Apple, and with app-argument or Universal Links a direct path into your app. For a few minutes of work, it's one of the easiest ways to turn website visitors into users.

  • Smart App Banner
  • apple-itunes-app
  • link app from website
  • Universal Links
  • Safari iPhone