问题描述
有人可以启发我这些通知的工作方式吗?我正在搜索有关此的一些信息,但没有运气.不知道我说的对吗.在某些页面上,有此弹出窗口用于下载站点的移动应用程序.它包含X关闭按钮和Download App按钮.对于iOS设备,它看起来总是一样的,因此我认为它不是定制的.它来自应用商店吗?
Can someone please enlighten me how those notifications work? I was searching some infos about it but no luck. Don't know if I name it right.On some pages there is this popup to download site's mobile application. It contains X close button and Download App button. For iOS devices it always looks the same, so I figured it's not custom made. Does it come somehow from app store?
这是图片: http://oi60.tinypic.com/2dmhymc.jpg
推荐答案
这被称为智能应用横幅",可以使用额外的元标记轻松地添加到您的网站中:
This is called a "Smart App Banner" and can easily be added to your site using an extra meta tag:
<meta name="apple-itunes-app" content="app-id=myAppStoreID, affiliate-data=myAffiliateData, app-argument=myURL">
您可以在content属性中包含三个逗号分隔的参数:
You can include three comma-separated parameters in the content attribute:
应用程序ID
您应用的唯一标识符.要从iTunes Link Maker中找到您的应用程序ID,请在搜索"字段中键入您的应用程序名称,然后选择适当的国家和地区和媒体类型.在结果中,找到您的应用,然后在右侧列中选择"iPhone App Link".您的应用程序ID是ID和?mt之间的9位数字.
Your app's unique identifier. To find your app ID from the iTunes Link Maker, type the name of your app in the Search field, and select the appropriate country and media type. In the results, find your app and select iPhone App Link in the column on the right. Your app ID is the nine-digit number in between id and ?mt.
会员数据
您的iTunes会员字符串(如果您是iTunes会员).如果不是,请在 http://www.apple.com/上找到有关成为iTunes会员的更多信息. itunes/affiliates/.
Your iTunes affiliate string, if you are an iTunes affiliate. If you are not, find out more about becoming an iTunes affiliate at http://www.apple.com/itunes/affiliates/.
应用参数
为您的本机应用程序提供上下文的URL.如果您包括此内容,并且用户安装了您的应用程序,则她可以从您的网站跳转到您的iOS应用程序中的相应位置.通常,保留导航上下文是有益的,因为:如果用户位于您网站的导航层次结构的深处,则可以传递文档的整个URL,然后在应用程序中对其进行解析,以将其重新路由到应用程序中的正确位置.如果用户在您的网站上执行搜索,则可以传递查询字符串,以便她可以在您的应用中无缝地继续搜索,而不必重新输入查询.如果用户正在创建内容,则可以传递会话ID来下载应用程序中的Web会话状态,这样她就可以无损地恢复工作.您可以使用服务器端脚本动态生成每个页面的应用程序自变量.您可以根据需要设置其格式,只要它是有效的URL即可.
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.
注意:您不能在框架内显示智能应用程序横幅.标语不会出现在iOS模拟器中.
这篇关于“下载我们的应用"在移动设备上的通知的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!