react-navigation / react-navigation/react-navigation.github.io

Deeplinking guide has incorrect android intent-filter

未关闭
#1,119 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

主要语言
JavaScript
星标
324
派生
2k
PR 合并指标
30 天内没有已合并 PR

描述

https://github.com/react-navigation/react-navigation.github.io/blob/bfc09a18884e06304f9e79176ef5e9f3d2c0cb8c/versioned_docs/version-6.x/deep-linking.md?plain=1#L164-L179

The data fields gets merged:

<data android:scheme="mychat" /> 
<data android:scheme="https" android:host="www.example.com" /> 
<data android:scheme="http" android:host="www.example.com" /> 

becomes:

<data android:scheme="mychat"
           android:scheme="https"
           android:scheme="http"
           android:host="www.example.com" /> 

And with that, only mychat://www.example.com will open the app.

Source https://stackoverflow.com/a/27321468/5555803

The solution is to use different intent-filters.

贡献指南

这个仓库没有索引到贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

调研方向

更新 versioned_docs/version-6.x/deep-linking.md,重点关注第 164-179 行的 Android intent-filter 示例。阅读链接的文档,并验证 issue 中描述的 Android 数据合并行为。完成的标准是指南针对列出的 schemes 展示单独的 intent-filters,并准确解释由此产生的 deep-link 行为。

由索引模型根据 Issue 内容生成。

评估

技术栈
android, react-native
领域
documentation, mobile-dev
Issue 类型
文档
难度
1/5
预计耗时
1 小时以内
活跃度
停滞
描述清晰度
描述清楚
新手友好度
35/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。