IOS6 Smart App Banners push APP New Features

Source: Internet
Author: User

The new iOS 6 tag apple-itunes-app provides a function called Smart App Banners. When you access a website on the iOS Mobile platform, you will be prompted to go To the App Store to download the official App of this website.

Smart App Banners automatically identifies whether a user's device supports the APP. If the device is incompatible, the downloaded advertisement bar is not displayed.
Syntax format:

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


ID is required. App ID (required), Affiliate Data (Optional), Argument (Optional ).

App-id is the unique identifier of the APP. to query the app ID, access iTunes Link Maker and enter the app name in the search box. Select the country and type. On the right side of the search result list page, click the iPhone App Link, and the id and? 9 is the unique ID of the APP.

Other optional attributes:


Affiliate-data: (Optional .) your iTunes affiliate string, if you are an iTunes affiliate. if you are not, find out more about becoming an iTunes affiliate at app-argument: (Optional .) a url that provides context to your native app. if you include this, and the user has your app installed, she can jump from your website to the corresponding position in your iOS app. typically, it is beneficial to retain navigational context because:

If the user is deep within the navigational hierarchy of your website, you can pass the document's entire URL, and then parse it in your app to reroute her to the correct location in your app.

If the user performs a search on your website, you can pass the query string so that she can seamlessly continue the search in your app without having to retype her query.

If the user is in the midst of creating content, you can pass the session ID to download the web session state in your app so she can nondestructively resume her work.

You can generate the app-argument of each page dynamically with a server-side script. You can format it however you 'd like, as long as it is a valid URL.

For the format, refer to Twitter's writing:


 

 meta name="apple-itunes-app" content="app-id=333903271, app-argument=twitter://timeline, affiliate-data=partnerId=30&siteID=UkOLawSuc90&u1=tw-

44c06a9f3dde70bac326583e550d2f3dafd9cf56a0f96e6e639cf2155 ">

<Meta name = "apple-itunes-app" content = "app-id = 333903271, app-argument = twitter: // timeline, affiliate-data = partnerId = 30 & siteID = UkOLawSuc90 & u1 = tw-44c06a9f3dde70bac326583e550d2f3dafd9cf56a0f96e6e639cf2155 ">


Note that the Smart App Banners label cannot be used inside the frame; otherwise, it does not work.

 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.