传递查询参数以从Branch重定向URL [英] Pass query params to redirect url from Branch

查看:55
本文介绍了传递查询参数以从Branch重定向URL的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

考虑网址-

example.com/page

example.com/page

这是从分支机构"仪表板的市场营销"标签中生成的.

which is generated from marketing tab in Branch dashboard.

现在,我使用此URL来打开我的iOS应用程序,并且还具有针对台式机和Android的重定向URL.我将查询参数附加到我的深层链接URL中,如下所示.

Now I use this URL to open my iOS application and also have redirect urls for desktop and Android. I append query params to my deep linked URL as below.

example.com/page?currentPage="myPage"

example.com/page?currentPage="myPage"

在我的应用程序的分支初始化会话中,我可以获取手动添加的参数.

In my application, in branch init session I am able to get the parameters which I added manually.

现在,如何为重定向URL实现相同的功能?如果我将查询参数添加到Branch链接,则应将其传递给我的重定向URL,而无需安装任何Branch的SDK.

Now, how can I achieve the same for redirect URL? If I add query params to Branch link then it should be passed on to my redirect URL without any SDK of Branch installed.

它应重定向到如下所示的URL:

It should redirect to URL like below:

mydomain.com/page?currentPage="myPage"

mydomain.com/page?currentPage="myPage"

推荐答案

您指出,当您将链接参数附加到Branch链接,然后使用这些链接打开iOS应用程序时,便可以从分支SDK.如果我理解正确,那么您的问题是,当用户单击非iOS设备上的分支链接时,如何将此类查询参数传递给您重定向到的网站.

You indicate that when you append link parameters to your Branch links and then use those links to open your iOS app, you are able to retrieve the appended parameters from the Branch SDK. Your question, if I am understanding correctly, is how to pass such query parameters to the websites that you are redirecting to when users click on Branch links from non-iOS devices.

点击分支"链接并将用户重定向到您指定为应用程序(或链接)"Android URL"或桌面URL"的URL时,Branch将自动附加附加到该链接的任何参数

When a Branch link is tapped and the user redirected to URLs that you have specified to be the app's (or the link's) "Android URL" or "Desktop URL," Branch will automatically append any parameters that were appended to that link.

例如,分支"链接 https://ogt1.app.link/KZGUqrzBdB 重定向用户在Android设备和台式机上访问" http://www.bing.com/search ".将查询参数"q = branch + metrics"附加到"Branch"链接会产生链接" https://ogt1.app.link/KZGUqrzBdB?q = branch + metrics ",它将自动将Android和桌面用户重定向到"

For example, the Branch link https://ogt1.app.link/KZGUqrzBdB redirects users on Android devices and Desktops to "http://www.bing.com/search". Appending the query parameter "q=branch+metrics" to the Branch link produces the link "https://ogt1.app.link/KZGUqrzBdB?q=branch+metrics", which will automatically redirect Android and Desktop users to "http://www.bing.com/search?q=branch+metrics".

打开重定向到的页面后,您可以通过多种方式检索任何附加的参数.最直接的两种方法是:

When the page you redirect to opens, you can retrieve any appended parameters in many ways. Two of the most straightforward approaches are:

如果我误解了您的要求,请提供更多详细信息.示例和测试计划将是最有帮助的.

If I have misunderstood what you are asking please provide more detail. Examples and a test plan would be most helpful.

这篇关于传递查询参数以从Branch重定向URL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆