Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/207.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
从电子邮件客户端发送打开Android应用程序的电子邮件_Android_Html - Fatal编程技术网

从电子邮件客户端发送打开Android应用程序的电子邮件

从电子邮件客户端发送打开Android应用程序的电子邮件,android,html,Android,Html,我收到了Pinterest每周的时事通讯。当我点击一张图片或谷歌Play内的可用徽标时,手机上会弹出一个内置的弹出窗口,让我用Chrome或Pinterest打开链接。这里的关键是Pinterest应用程序。在我的笔记本电脑上,它显示了一个pinterest.com链接 所以我在写我们的时事通讯,并决定这样做。我所做的只是在部分中设置了我们应用程序的google play链接,但它打开了google play,而不是为我提供在手机上打开应用程序的选项 <a href="https://pl

我收到了Pinterest每周的时事通讯。当我点击一张图片或谷歌Play内的可用徽标时,手机上会弹出一个内置的弹出窗口,让我用Chrome或Pinterest打开链接。这里的关键是Pinterest应用程序。在我的笔记本电脑上,它显示了一个pinterest.com链接

所以我在写我们的时事通讯,并决定这样做。我所做的只是在部分中设置了我们应用程序的google play链接,但它打开了google play,而不是为我提供在手机上打开应用程序的选项

<a href="https://play.google.com/store/apps/details?id=com.app.app"><img src="http://www.website.com/mylogo.png"  width="100" height="35"/></a>
我该怎么做

解决方案

我想为那些像我一样不了解它是如何工作的人回答这个问题,但不幸的是stackoverflow不让我这么做

这就是我所做的:

舱单:

链接:

您的网站就在标签之前

这里发生了什么事

你将你的链接指向你的网站,而不是你的google play URL。 在清单中,您将应用程序设置为侦听指向您网站的链接。 你将你的移动用户发送到谷歌播放URL,但这只发生在他们的手机上没有你的应用时。否则,您的浏览器将允许您通过电子邮件打开应用程序。
我想强调的是,尽管关于stackoverflow有大约5个类似的问题,但没有一个能在背景上给出真正的解释。我希望我能帮助其他人解决这个问题。

可能是用mime类型或协议完成的。老实说,我不知道如何处理这些答案。每个人都在谈论一些事情,但没有人提供解决方案,问题也很难理解。你应该查看时事通讯的来源,看看他们是如何做到的。它完全不可读,就像是编码的,而不是普通的htmlsource@erdomester你对这个问题有什么不理解的?它完美地回答了你的问题。你把它放在你的应用程序清单文件中,就这样。
<intent-filter>
   <action android:name="android.intent.action.VIEW" />
   <category android:name="android.intent.category.DEFAULT" />
   <category android:name="android.intent.category.BROWSABLE" />
   <data android:scheme="http" android:host="yolify.net"
     android:pathPrefix="/"/>
</intent-filter>
<a href="http://yolify.net">LINK</a>
<script>
if (screen.width <= 1080) {
     document.location = "https://play.google.com/store/apps/details?id=com.yolify.android";
  }
</script>