离子3深度链接重置密码 [英] ionic 3 deeplinking for reset password

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

问题描述

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

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(自定义网址响应)来完成,例如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,它会删除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网址中。

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

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

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