从gmail打开并重定向时,Android深层链接不会重定向到应用

发布于 2025-02-05 18:17:27 字数 576 浏览 3 评论 0 原文

我有以下方案: 我有app.myapp.com,既是我的应用程序的PWA又是应用链接主机。另外,我还有API.MyApp.com,它是该应用程序的后端,所有请求都发送到API域。 当我验证用户的电子邮件地址时,验证链接是通过电子邮件发送给他们的: https://api.myapp.com/verifyemail/token/asd123 当他们单击它时,后端验证令牌,如果有效,则将http重定向发送到。由于这是一个应用程序链接域,如果用户安装了我的应用程序,则该应用将使用适当的页面打开(恭喜,电子邮件已验证)。 但是,当用户使用Gmail应用程序并在Gmail中启用了嵌入式浏览器时,此嵌入式浏览器将在重定向后无法识别新域,并且不会尝试打开我的应用程序。如果我打开嵌入式浏览器,那么一切都可以完美地工作。 有解决方法吗?

I have the following scenario:
I have app.myapp.com that is both a PWA and app link host for my app. Also I have api.myapp.com that serves as the backend for the app, all the requests are sent to the api domain.
When I verify the email address of the user, than a verification link is sent to them via email like this: https://api.myapp.com/verifyEmail/token/asd123
When they click on it, the backend verifies the token and if it is valid, then it sends an HTTP redirect to https://app.myapp.com/email-verified. Since this is an app link domain, if the user has my app installed, then the app will open with the appropriate page (congrats, email is verified).
But when the user uses the Gmail app and has the embedded browser enabled in gmail, then this embedded browser will not recognize the new domain after the redirect and will not try to open my app. If I turn on the embedded browser, then everything works flawlessly as it should.
Is there a workaround for this?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文