“链接到App Store”移动网站的小部件 [英] "Link to App Store" widget for mobile website

查看:162
本文介绍了“链接到App Store”移动网站的小部件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在过去的几个月中,我发现了几个使用某种小部件的网站。



如果我用iPhone打开一个拥有此小部件的网站,它将显示一个链接到(网站相关)iPhone应用程序。它看起来像一个简单的div包含应用程序名称,评级和链接。该小部件甚至知道我是否已经安装了应用程序。



这个东西总是显示在页面的顶部,看起来总是一样的。是否有某种由Apple提供的小工具/ API或者是这些链接的创建者?我在网上找不到任何关于它的信息......



感谢您的帮助!

方案

您正在寻找智能应用程序横幅广告。

http://developer.apple.com/library/ios/#documentation/AppleApplications/Reference/SafariWebContent/PromotingAppswithAppBanners/PromotingAppswithAppBanners.html b
$ b

用法与将以下元标记添加到网页源代码,指定Apple App Store ID某些关联数据,甚至是URL方案参数一样简单。

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


For the past months I have found several websites using some kind of "widget".

If I open a website having this widget with my iPhone, it will display a link to the (website related) iPhone app. It looks like a simple div containing appname, rating and link. The widget even "knows" whether I have already installed the app or not.

This thing is always shown on the top of the page and looks always the same. Is there some kind of widget/API offered by Apple or who is the creator of those links? I have found nothing yet in the web about it...

Thanks for your help!

解决方案

You're looking for "Smart App Banners".

http://developer.apple.com/library/ios/#documentation/AppleApplications/Reference/SafariWebContent/PromotingAppswithAppBanners/PromotingAppswithAppBanners.html

Usage is as simple as adding the following meta tag to your web page's source code, specifying the Apple App Store ID some affiliate data, and even a URL scheme argument.

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

这篇关于“链接到App Store”移动网站的小部件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆