【问题标题】:Android open custom url scheme from facebook appAndroid 从 facebook 应用程序打开自定义 url 方案
【发布时间】:2013-01-02 12:58:05
【问题描述】:

我使用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>

【问题讨论】:

  • 你可能缺少数据类型?

标签: android google-chrome facebook-android-sdk custom-url


【解决方案1】:

可能它与以下参考帖子中提到的错误相同,它声明它的 Chromium bug,您可以在那里看到解决此问题的方法。

OAuth and custom scheme result in a "ERR_UNKNOWN_URL_SCHEME" in Chrome

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2023-04-03
    • 1970-01-01
    • 1970-01-01
    • 2012-01-02
    相关资源
    最近更新 更多