Hyperlinks with non HTTP schema in GMAIL

点点圈 提交于 2019-12-03 03:24:23
SohailAziz

Custom schemes are not supported by gmail and chrome apps. Don't do this. Follow android guidelines for opening app from browser / link. See the following post Make a link in the Android browser start up my app?

You can create intent filters for HTTP and HTTPS URLs as well as URLs with custom schemes.

For example, you might set up an intent filter like so:

<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>
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!