简体   繁体   English

Android从Facebook应用程序打开自定义URL方案

[英]Android open custom url scheme from facebook app

I am uses intent-filter to open custom urls with my app, and it works fine.. 我正在使用intent-filter通过我的应用程序打开自定义网址,并且工作正常。

When im trying to open my custom url's from google chrome browser or facebook native app post (in private message its works good) its doesn't work and open it as website. 当我试图从谷歌浏览器或Facebook本机应用程序打开我的自定义网址时(在私人消息中它的效果很好),它不起作用并将其作为网站打开。

My code: 我的代码:

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

Probably its the same bug as mentioned in the following reference post, its stated that its Chromium bug , you can see a workaround there for this issue. 可能是与以下参考文章中提到的错误相同,该错误指出其Chromium错误 ,您可以在那里找到解决此问题的方法。

OAuth and custom scheme result in a "ERR_UNKNOWN_URL_SCHEME" in Chrome OAuth和自定义方案在Chrome中生成“ ERR_UNKNOWN_URL_SCHEME”

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM