1
我在做PHP项目。对于电子邮件验证我发送电子邮件到用户的,如何通过点击锚标签链接到已安装的应用程序?
Hi,
We need to make sure you are human. Please verify your email and get started using your Website account.
http://siteurl/email-verification/cc6560387c1111558bf5424046f2dc2b
当用户点击给出的链接,他会重定向到浏览器网页消息,
Your account is actived.
Click here to go back to application.
但现在我有麻烦在重定向到我的android应用程序。 我不知道如何将用户重定向回我的应用程序。现在我已经尝试通过使用代码来重定向用户的Facebook,
<a href="https://facebook.com/me" data-applink="fb://profile">Click here</a> to go back to application.
<script>
$('a[data-applink]').applink();
</script>
,但它在浏览器中打开Facebook的不是Facebook应用程序。 有没有办法做到这一点?
我做了什么样, 其中EngageV1是我的应用程序的名称
<div id="main" style="text-align: center; color: #787878">
<h2><?php echo $msg; ?></h2>
<a href="https://play.google.com/store/apps/details?id=engage.app.v1&ah=yIEhKqv-vh5CnjQrIULLeVouxkA" class="large-screen">Click here</a> to go back to application.
<a href="EngageV1://" class="small-screen">Click here</a> to go back to application.
</div>
<script>
setTimeout(function() { window.location = "https://play.google.com/store/apps/details?id=engage.app.v1&ah=yIEhKqv-vh5CnjQrIULLeVouxkA"; }, 25);
window.location = "EngageV1://";
</script>
如果用户从应用程序重定向到他们的电子邮件,是不是只是关闭电子邮件窗口将他们带回应用程序? –
没有用户没有被重定向到Gmail。在这里,我只是发送电子邮件给用户 – Amarja
可能重复? http://stackoverflow.com/questions/22275174/facebook-url-schemes-on-a-mobile-website-open-app-if-its-installed-otherwise-g –