【问题标题】:Hash mark in universal links in React Native (EXPO)React Native(EXPO)中通用链接中的哈希标记
【发布时间】:2020-09-16 12:52:28
【问题描述】:

我遇到了深度链接问题。我的网络应用程序的示例链接:https://example.com/#/create-password/:id 在打开此 URI 期间,我的应用无法启动。

我的 app.json:

"android": {
...
      "intentFilters": [
        {
          "action": "VIEW",
          "autoVerify": true,
          "data": [
            {
                  "scheme": "https",
                  "host": "*example.com",
                  "pathPrefix": "/#/create-password"
                }
              ],
              "category": [
                "BROWSABLE",
                "DEFAULT"
              ]
            }
          ]
    ...
 }

当我从 app.json 中删除哈希标记并运行 https://example.com/create-password/:id 时,我的 react 本机应用程序就会启动。 你能帮我解决这个问题吗?

【问题讨论】:

    标签: reactjs react-native-android


    【解决方案1】:

    您遇到的问题似乎与 Android 直接相关,而不是 React Native - Intent filter pathPrefix with '#' not working。我想您可以使用pathPattern 而不是pathPrefix 来解决这个问题。

    【讨论】:

      猜你喜欢
      • 2023-01-08
      • 2020-12-25
      • 2018-11-03
      • 1970-01-01
      • 2021-01-28
      • 1970-01-01
      • 2012-05-06
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多