简体   繁体   English

如何在Android的gmail中读取(查看)html?/ Gmail

[英]how to read(see) html in my android's gmail?/ Gmail

I am sending one mail to my gmail account. 我正在向我的Gmail帐户发送一封邮件。 This mail contains my custom scheme url(so when this link will be clicked I will be able to activate my installed application on device). 这封邮件包含我的自定义方案网址(因此,当单击此链接时,我将能够激活我在设备上安装的应用程序)。 However I am unable to click this url because when I open my gmail in android device it simply shows me simple text Like this :- 但是我无法单击此URL,因为当我在android设备中打开gmail时,它只会向我显示简单的文本,例如:-

Hi, You can download your book here :- This will be my link. 嗨,您可以在这里下载您的书:-这是我的链接。

Now "This will be my link" does not appear to be a link so I am unable to click this and so can not open my application. 现在“这将是我的链接”似乎不再是一个链接,因此我无法单击此链接,因此无法打开我的应用程序。

My question here is how can I read(see) html in my android's gmail? 我的问题在这里,我如何才能在Android的Gmail中阅读(参见)HTML?

This isn't just an Android question - the GMail website doesn't let you click URL's with unknown schemes either. 这不仅仅是一个Android问题-GMail网站也不允许您单击带有未知方案的URL。

There is no changing this behavior to my knowledge. 据我所知,这种行为没有改变。 However, you can configure your Android app to respond to URL's from your web site instead. 但是,您可以将Android应用配置为响应来自网站的URL。 So if you have the web site http://mywebsite.com/ then you can set your app to handle all URL's that start with http://mywebsite.com/app/ . 因此,如果您拥有网站http://mywebsite.com/,则可以将您的应用设置为处理以http://mywebsite.com/app/开头的所有URL。 Users can click these links in GMail, and if they have your app installed it will open your app. 用户可以单击GMail中的这些链接,如果他们安装了您的应用程序,它将打开您的应用程序。 If they don't, it will load the browser and go to your web site - where you can tell them they need to install your app. 如果他们不这样做,它将加载浏览器并转到您的网站-您可以在其中告诉他们他们需要安装您的应用程序。 = ) =)

As I was trying to implement custom scheme url(Appcelerator titanium) but my email was unable to read that url as link so I added http:// starting of my url so now my email shows this as url and now I am able to click this url in respond my application successfully opens. 当我尝试实现自定义方案url(Appcelerator Titan)时,我的电子邮件无法读取该url作为链接,因此我在URL中添加了http://开头,因此现在我的电子邮件将其显示为url,现在我可以单击响应中的此URL成功打开了我的应用程序。

My focus was to make one common link so that no matter its iOS or android if user clicks this link my installed application will be opened. 我的重点是建立一个公共链接,以便无论是iOS还是android,如果用户单击此链接,都会打开我已安装的应用程序。 But adding http:// in iOS will never open your application it will always be directed to browser(that what I read). 但是在iOS中添加http://将永远不会打开您的应用程序,它始终会定向到浏览器(即我所读的内容)。 So right now I am keeping two different links for different OS. 因此,现在我为不同的操作系统保留两个不同的链接。

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

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