0

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>
4

1 回答 1

0

可能它与以下参考文章中提到的错误相同,它指出它的 Chromium 错误,您可以在那里看到解决此问题的方法。

OAuth 和自定义方案导致 Chrome 中出现“ERR_UNKNOWN_URL_SCHEME”

于 2013-07-24T10:54:15.723 回答