用于重置密码的 ionic 3 深度链接 [英] ionic 3 deeplinking for reset password

查看:22
本文介绍了用于重置密码的 ionic 3 深度链接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 ionic 3 创建一个移动应用程序.我需要知道实现重置密码功能的逻辑.到目前为止,我可以向用户发送一封带有重置令牌的电子邮件.我在想 id 用户点击电子邮件中的链接,如果安装了应用程序,那么它应该打开专用于重置密码的应用程序页面.

I am creating a mobile application using ionic 3. I need to know the logic to implement reset password functionality. till now, i am able to send an email with reset token to the user. I was thinking that id user clicks on the link in the email, if app is installed then it should open the application page dedicated for reset password.

所以我做了一些研究,发现可以使用 DeepLinking(自定义 url 响应)来完成,比如 myApp://resetPassword/{token}

So i did a little research and found that it can be done using DeepLinking ( custom url to respond) like myApp://resetPassword/{token}

现在问题出在 gmail 中,当您发送带有自定义 url 的链接时,它会删除 href 选项.

Now the problem is in gmail when you send link with custom url, it removes the href option.

谁能告诉我一些实现此功能的信息和一些要阅读的文章.

Can some one tell me slight information to implement this functionality and some articles to read.

谢谢,

推荐答案

我发现了这个问题 https://github.com/EddyVerbruggen/Custom-URL-scheme/issues/81 关于 gmail 中的此 href 删除.

I found this issue https://github.com/EddyVerbruggen/Custom-URL-scheme/issues/81 concerning this href removal in gmail.

他们建议 - 就像 user1027620 - 创建一个常规的 html 页面并使用 JavaScript 重定向来完成这个技巧.

They recommend - just as user1027620 - to create a regular html page and use JavaScript redirection to do the trick.

我猜你确实需要 JavaScript 来从 url 获取参数(唯一令牌...)并将它们复制到 myApp://resetPassword url 中.

I guess you will indeed need JavaScript to get the arguments (unique token...) from the url and copy them in the myApp://resetPassword url.

这篇关于用于重置密码的 ionic 3 深度链接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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