android - “类型”字不能附加为 branch.io 深层链接上的查询字符串

标签 android branch.io

我尝试在 branch.io 深层链接上附加查询字符串以将数据从链接传递到应用。

测试是这样的:

https://example.app.link?type=123&hello=world

但在 Android 中,'type' 参数不像 'hello' 那样被删除

这是 Intent 的转储:

[branch_data={"~id":"0","+url":"https://example.app.link/?hello=123","hello":"123","~creation_source":6,"+domain":"example.app.link","+click_timestamp":1511169927,"+clicked_branch_link":true,"+match_guaranteed":true,"+is_first_session":true}]

我假设'type'这个词是保留的,还有这样的关键字吗?

有什么方法可以使用'type'这个词作为参数吗?

最佳答案

Amruta 来自 Branch.io这里:

如您所料,type 关键字是保留关键字,因此不能用作自定义查询参数。不幸的是,没有办法解决这个问题。

这里是保留关键字列表

'iframe_src', 'has_app', 'app_id', 'data', 'tags', '~tags', 'channel', '~channel', 'feature', '~feature', ' stage', '~stage', 'campaign', '`~campaign', 'type', 'duration', 'click', 'callback', 'post_data', 'branch_key', '$journeys_title', '$journeys_description ', '$journeys_icon_image_url', '$journeys_reviews'

关于android - “类型”字不能附加为 branch.io 深层链接上的查询字符串,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47389048/

相关文章:

android - GridView 内存不足错误

android - 列出已安装包的 Intent 过滤器

branch.io - Android : Branch. io 教程 : Branch. getAutoInstance(this);

ios - branch.io - 参数 +is_first_session 始终为 false

android - 如何为 Branch.io 提取 Sha256 证书指纹

ios - 在 ios 中首次启动时, View 会全黑几秒钟, swift

android - 6.0.1 搜索附近的蓝牙

android - Google 文档 mime 类型

android - Activity 恢复时 super.onCreate(savedInstanceState) 崩溃

javascript - 如何从 branch.io 的身份访问 Branch Identity ID