【问题标题】:Getting deeplinking data from install referrer intent从安装引荐来源意图获取深度链接数据
【发布时间】:2015-12-29 11:28:06
【问题描述】:

我希望我的应用程序使用此流程。
当用户点击我的网站上包含深层链接元素的链接时,例如:www.example.com/lorem?a=qwerty&b=poiuyt,可能会发生以下两种情况:

  1. 如果应用程序存在,则用户将被带到相应的活动并显示内容(我通过以下方式完成)

    <category android:name="android.intent.category.DEFAULT" /> <category android:name="android.intent.category.BROWSABLE" /> <data android:scheme="http" /> <data android:scheme="https" /> <data android:host="www.example.com" />

  2. 如果设备中不存在应用,则必须将用户带到应用商店,如果用户下载并运行应用,则应打开此内容页面。 (这是我做不到的)

【问题讨论】:

    标签: android intentfilter deep-linking


    【解决方案1】:

    箭头001,

    与 Android 的深度链接可能很棘手。使用 Branch 的开源软件可以轻松解决未安装应用程序的人的深度链接问题(即,如果没有应用程序 -> 转到应用商店 -> 通过安装传递数据 -> 加载深度链接的内容)安卓 SDK。它会让您通过安装传递数据,并且您生成的链接将跨平台(桌面/android/ios)工作。

    以下是一些帮助您入门的链接:

    了解 Branch 的作用(即它如何解决您的问题): https://dev.branch.io/#what-does-branch-do

    将 SDK 添加到您的项目中: https://dev.branch.io/recipes/add_the_sdk/android

    设置深度链接和生成深度链接: https://dev.branch.io/recipes/setup_deep_linking/android

    SDK 来源: https://github.com/BranchMetrics/Android-Deferred-Deep-Linking-SDK

    示例应用: https://github.com/BranchMetrics/Branch-Example-Deep-Linking-Branchster-Android

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2022-01-05
      • 1970-01-01
      • 2011-01-20
      • 2021-12-01
      • 2018-10-14
      • 2020-01-23
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多