我可以从 InAppBrowser 打开 Facebook 应用程序或新 Chrome window 吗?

Can i open Facebook app or new Chrome window from InAppBrowser?

是否可以在使用选项 _blank 时从 InAppBrowser 打开新的 Chrome window?

cordova.InAppBrowser.open(url, '_blank', 'location=no,hide=yes,zoom=no');

我向页面上的所有链接添加了属性 target="_blank",但这不会打开新的 window。

有人知道这是否可行吗?

尝试使用 window.open 而不是 cordova.InAppBrowser.open

我在我的 Hybrid 应用程序中使用 window.open 没有问题

无需添加 _blank,因为这是默认设置..

使用 InAppBrowser,您可以调用 urls 并且您可以根据您的平台显示其中的一些文件。

无法“启动”另一个应用程序,但您可以:

  1. 使用其他应用程序打开文件。因此你需要一个插件。您可以在此处获得概述:

http://plugreg.com/search?q=open http://cordova.apache.org/plugins/?q=intent

如果要打开外部 url,请阅读:

http://cordova.apache.org/docs/en/latest/guide/appdev/whitelist/index.html

  1. 您可以在您的应用之外共享内容。所以你还需要一个插件,用这个:

http://plugreg.com/plugin/EddyVerbruggen/SocialSharing-PhoneGap-Plugin