在branch.io上使用变量查询进行深层链接 [英] Deep link with variable query on branch.io

查看:86
本文介绍了在branch.io上使用变量查询进行深层链接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们正在考虑将branch.io用于应用程序的社交共享。我也想知道是否可以将其用于密码重设流程。这是为了避免像gmail这样的电子邮件客户端剥离自定义应用程序uri的事实:

We are considering using branch.io for the social sharing aspect of our app. I'm also wondering whether I can use it for the password reset flow. This is to get around the fact that email clients like gmail strip the custom application uri like:

frock//:foo.com/reset-pw

不在任何链接中: https://github.com/EddyVerbruggen/Custom-URL-scheme/issues/123

因此,我正在考虑使用branch.io发送指向密码恢复屏幕的链接,并且想知道是否必须为每个用户创建一个branch.io链接,或者是否可以创建一个链接将其称为/ reset-pw,然后将其传递给变量查询参数,例如:

So I'm thinking about using branch.io to send out a link to the password recover screen and am wondering if I have to create a branch.io link for each user, or whether I can create one link call it /reset-pw and then pass it a variable query parameter like so:

 /reset-pw?token=foo

还是每个网址加查询组合都要求我向分支注册一个链接。

Or does each url plus query combination require that I register a link with branch.

推荐答案

目前已在Branch使用。

Full disclosure, currently employed at Branch.

您当然可以创建一个链接和追加查询参数,就像您在哟您的示例,但您需要集成Branch SDK&确保您已经设置了一个帐户。有关创建这些类型的链接的更多信息,请此处

You can certainly create a single link and append query parameters like you have in your example, but you'll need to integrate the Branch SDK & make sure you've set up an account. More info on creating those types of links here.

分支使用保留的关键字 $ deeplink_path,该关键字允许您指定 frock://之后的部分。只需执行以下操作:

Branch uses a reserved keyword called "$deeplink_path" that allows you to specify the portion that comes after "frock://". Simply do the following:

https://bnc.lt / a / key_live_xxxx ?$ deeplink_path =%2Freset-pw%3Ftoken%3Dabc

https://bnc.lt/a/key_live_xxxx?$deeplink_path=%2Freset-pw%3Ftoken%3Dabc

并且Branch将通过该令牌键值对。 (同样,假设您已设置SDK并注册了一个帐户)。

and Branch will pass through that token key value pair. (again, assuming you've set the SDK up and registered for an account).

这篇关于在branch.io上使用变量查询进行深层链接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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