繁体   English   中英

HTML email 中的深层链接无法在移动设备上打开应用程序

[英]Deep link in HTML email not opening app on mobile

我在我的 HTML 表单中嵌入了一个深层链接,该表单是通过 nodeJS 上的 SendGrid API 提交的。

尽管用户能够收到 email,但他们无法点击它。

        <!DOCTYPE html>
        <html>
            <head>
                <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
                <meta name="viewport" content="width=device-width, initial-scale=1.0">
           </head>
           <body>
                <div class="main">
                <div>
                    <h1>Welcome to Example</h1>
                    <button disabled style="font-size:20px;">Connect</button>
                </div>
                <div class="content">
                    <p>A request to reset your password has been made. If you did not make this request, simply ignore this email. If you did make this request, please reset your password below.</p>
                </div>
                <div>
                <form action="exampleapp://resetpassword/" target="_blank">
                    <input type="submit" value="Reset Password" style="background: #00008B; padding: 10px 50px; border: none; color: #FFF"/>
                </form>
                </div>
                <div>
                    <h2><a href="https://www.example.com/en" target="_blank">Example Here</a></h2>
                </div>
                </div>
            </body>
            <footer>
                <div>
                    <p>Having trouble viewing this email?</p>
                    <a href="#">Contact our support team.</a>
                </div>
            </footer>
        </html>

我尝试将<form><input /></form>更改为<a href="exampleapp://resetpassword/">但无济于事。

请帮忙,谢谢

我使用 AWS 和 NodeJS 创建了一个自定义解决方案。

有关更多信息,请阅读https://roycjh.medium.com/how-to-direct-users-from-email-to-your-mobile-app-or-website-using-deep-links-2727af0fc74a

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM