Android GMAIL中具有非HTTP模式的超链接

Android GMAIL中具有非HTTP模式的超链接,android,hyperlink,gmail,Android,Hyperlink,Gmail,因此,我正在制作移动应用程序,并希望使用相同的URL在iOS和安卓系统中创建链接以激活内容。我已经知道怎么做了。我对安卓系统的目标是: <intent-filter> <action android:name="android.intent.action.VIEW" /> <category android:name="android.intent.category.DEFAUL

因此,我正在制作移动应用程序,并希望使用相同的URL在iOS和安卓系统中创建链接以激活内容。我已经知道怎么做了。我对安卓系统的目标是:

            <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:host="activity.action android:scheme="myapp"/>
            </intent-filter>


您可以为HTTP和HTTPS URL以及具有自定义方案的URL创建意图过滤器

例如,您可以设置如下意图过滤器:

<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="example.com"
        android:path="/my-path" />

</intent-filter>


gmail和chrome应用程序不支持自定义方案。不要这样做。遵循android指南从浏览器/链接打开应用程序。请参阅下面的帖子

您是否尝试过一封带有href的html电子邮件?是的,添加了类似“仍然会被剥离”的内容,您得到的只是文本Gmail具有URL方案保护。许多网站也是如此。我建议您在服务器上创建一个网页,将用户重定向到您的协议,并通过Gmail将该网页发送给您的用户。谢谢您的建议!您不需要将用户发送到将其重定向到自定义方案的网页。如果你拥有一个域名,你可以为一个特定的URL创建一个意向过滤器。gmail/chrome/etc的这个限制是否有正式的文档记录?