有没有办法强制从Facebook的应用内浏览器中打开Chrome链接?

有没有办法强制从Facebook的应用内浏览器中打开Chrome链接?

问题描述:

我有一个需要打印功能的网络应用程序。 Facebook的应用内Chrome实现不允许打印。目前,我正在向用户提供有关如何打开chrome本身的说明,而不是我给普通用户打印的按钮。但我希望只是在他们到达该页面时为他们打开Chrome,或者至少提供一个按钮/链接,可以在Chrome中打开该页面而不是强制他们找到设置按钮并找出如何打开Chrome自己。

I've got a web app that requires the ability to print. Facebook's in-app implementation of Chrome doesn't allow printing. Currently, I'm giving the user instructions on how to open in chrome themselves in place of the print button I give normal users. But I'd prefer to just open Chrome for them when they get to that page, or at the very least provide a button/link that would open the page in Chrome instead of forcing them to find the settings button and figure out how to open Chrome themselves.

我尝试使用googlechrome://myurl.com方法,Chrome打开,但指定的网址无法加载。

I've tried using the googlechrome://myurl.com approach, and Chrome opens, but the specified url doesn't load.

我查看了 Google的Intent选项但我无法弄清楚如何使用该方法打开Chrome。

I've looked into Google's Intent option but I wasn't able to figure out how to open Chrome with that method.

有没有办法在javascript中完成此操作?或者通过href属性中的某个url方案?

Is there a way to accomplish this in javascript? or by some url scheme in an href attribute?

到目前为止,我发现的所有其他答案都解释了如何从Android应用程序执行此操作,但不是来自一个网站。

So far, all the other answers I've found give explanations for how to do this from an Android App, but not from a website.

**更新:googlechrome://myurl.com似乎在原生Facebook应用程序中从iOS正常工作。它似乎无法在Android中使用原生Facebook应用程序正常工作。

** Update: The googlechrome://myurl.com seems to work fine from iOS in the native facebook app. It does not appear to work correctly using the native facebook app in Android.

尝试


googlechrome://导航?url = example.com

googlechrome://navigate?url=example.com

适用于Android用户。

for Android users.

来自 https://*.com/a/12013755/的参考资料9514189