0

我遇到了深度链接的问题。我的网络应用程序的示例链接: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时,我的反应原生应用程序就会启动。你能帮我解决这个问题吗?

4

1 回答 1

0

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

于 2020-09-17T09:02:59.363 回答