我intent-filter
习惯用我的应用程序打开自定义网址,它工作正常..
当我试图从 google chrome 浏览器或 facebook 本地应用程序帖子中打开我的自定义 url 时(在私人消息中效果很好)它不起作用并将其作为网站打开。
我的代码:
<intent-filter>
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<action android:name="android.intent.action.VIEW" />
<action android:name="android.intent.action.SEND" />
<data
android:host="mydomain.co.il"
android:scheme="http" />
<data
android:host="www.mydomain.co.il"
android:scheme="http" />
<data
android:host="www.mydomain.co.il"
android:scheme="myscheme" />
</intent-filter>