Want to show App Banners in your website?
Apple has a new way to show banners in your website.

Smart App Banners iOS Apple

All you have to do is add a meta tag to the portion of your web site:

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

where ‘YOUR_APP_ID’ is your app’s id.

More options

If you also have an affiliate code you can include your partnerID and siteId using ‘affiliate-data’:

<meta name="apple-itunes-app" content="app-id=YOUR_APP_ID, affiliate-data=siteID=YOUR_SITE_ID&partnerId=YOUR_PARTNER_ID"/>

One last option you really should take advantage of is the app-argument. This is a URL such as http://whatever/you/like and is passed directly to your app’s delegate (even if you don’t have any custom URL handler registered). This lets you pass information to your app when it launches so you can easily know it came from a particular Smart App Banner. This can help track where links are coming from or, better yet, you can use it to display a particular screen relevant to the page the banner is displayed on (such as a specific level or article).

<meta name="apple-itunes-app" content="app-id=YOUR_APP_ID, app-argument=http://article/1"/>

Your app’s UIApplication delegate will receive the app-argument as the openURL value:

-(BOOL)application:(UIApplication*)app openURL:(NSURL*)url 
    sourceApplication:(NSString*)sApp annotation:(id)ann {
    
    if (url != nil) {
        // your code here...
    }
    return YES;
}

Please leave your valuable comments @coderzheaven@gmail.com

 

Leave a Reply

Your email address will not be published. Required fields are marked *

 

 

 

Theme by HermesThemes

Copyright © 2018 CoderzHeaven. All Rights Reserved

Please wait...

Subscribe to our newsletter

Want to be notified when our article is published? Enter your email address and name below to be the first to know.