我尝试在 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/