【问题标题】:Need to recommend mobile app store link from web site when using mobile使用手机时需要从网站推荐手机应用商店链接
【发布时间】:2015-08-14 08:14:32
【问题描述】:

我的网站在 AppStore 和 PlayStore 中有一个移动应用程序。在使用移动设备和网站时,我需要向用户推荐应用链接。 如果该应用已经安装在手机上,则无需在网页上显示应用商店链接。

是否可以检测从网站安装的应用程序?

是否有任何可用的与此相关的元标记?

【问题讨论】:

    标签: c# ios asp.net-mvc mobile


    【解决方案1】:

    是的,您可以在您的网站中为 iOS 应用程序添加智能横幅。这里是官方文档的链接:iOS Developer Library

    据我所知,到目前为止,对于 android,还没有这样的官方实现。但这里是自定义jQuery Smart Banner 的链接,它也可用于 iOS、Android 和 Windows 商店应用程序。

    您可以在主应用程序活动中使用意图过滤器的另一种方式,这样当调用所需的 url 时,主活动将启动。

    <intent-filter>
        <data
            android:host="www.xyz.com"
            android:pathPrefix="/mobileapps"
            android:scheme="http" >
        </data>
        <action android:name="android.intent.action.VIEW" />
    
        <category android:name="android.intent.category.DEFAULT" />
        <category android:name="android.intent.category.VIEW" />
        <category android:name="android.intent.category.BROWSABLE" />
    </intent-filter>
    

    【讨论】:

      【解决方案2】:

      回答你的问题,是的!

      对于 Appstore,Apple 已在此处记录: https://developer.apple.com/library/ios/documentation/AppleApplications/Reference/SafariWebContent/PromotingAppswithAppBanners/PromotingAppswithAppBanners.html

      对于元标记,它看起来像这样:

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

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 2016-09-03
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2017-08-27
        • 1970-01-01
        • 2018-02-17
        相关资源
        最近更新 更多