'type' 词不能附加为 branch.io 深层链接上的查询字符串
'type' word can not be appended as query strings on branch.io deeplink
我尝试在 branch.io deeplink 上附加查询字符串以将数据从 link 传递到应用程序。
测试是这样的:
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'
我尝试在 branch.io deeplink 上附加查询字符串以将数据从 link 传递到应用程序。
测试是这样的:
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'