【问题标题】:dynamic link - navigate to app if it is installed or navigate to app store or play store if it is not installed (react-native)动态链接 - 如果已安装,则导航到应用程序;如果未安装,则导航到应用程序商店或 Play 商店(react-native)
【发布时间】:2021-08-21 16:58:35
【问题描述】:

在真实设备上测试后,我想在没有浏览器桥的情况下直接导航到应用程序或应用程序/播放商店的动态链接,目前动态链接工作正常,但它先导航到浏览器,然后再导航到应用程序(如果安装了其他)首先导航到浏览器,然后播放商店或应用商店。 我需要直接导航而无需先访问浏览器。 enter image description here
我遵循的步骤。

  1. 使用 Firebase 创建动态链接。

  2. 分别为场景和链接应用添加了 ios 和 android 的行为。 3.在firebase中的项目设置中添加了团队ID,应用商店ID,并且apple-app-site-association文件在由动态链接创建的域上。 4.在androidMainfest.xml中添加Android Intent过滤器

        <intent-filter android:autoVerify="true">
                            <action android:name="android.intent.action.VIEW" />
                            <category android:name="android.intent.category.DEFAULT" />
                            <category android:name="android.intent.category.BROWSABLE" />
                            <data android:scheme="https" android:host="www.example.com"/
    </intent-filter>
                
  3. 关联的捆绑包 id、域到 xcode for ios。

  4. 项目中动态链接的安装包。 纱线添加@react-native-firebase/dynamic-links cd ios/ && pod installenter image description here

【问题讨论】:

    标签: xcode firebase react-native firebase-dynamic-links


    【解决方案1】:

    进入动态链接标签内的活动跟踪、社交标签和高级选项,并选中复选框跳过应用预览页面(不推荐)。它对我有用

    【讨论】:

      猜你喜欢
      • 2019-06-18
      • 2019-10-15
      • 2020-06-23
      • 1970-01-01
      • 2012-11-11
      • 2019-05-04
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多