问题
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