ionic 3 deeplinking for reset password

落花浮王杯 提交于 2020-01-03 02:23:25

问题


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.

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

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.

Thanks,


回答1:


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

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

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



来源:https://stackoverflow.com/questions/48916618/ionic-3-deeplinking-for-reset-password

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!