[英]Phonegap 2.7.0 on Android doesn't open external links in default browser
I'm developing and iOS/Android application with Sencha Touch 2 and Phonegap 2.7.0. 我正在使用Sencha Touch 2和Phonegap 2.7.0开发iOS / Android应用程序。 I'm trying to make a JS function that would open a given url in device default browser.
我正在尝试制作一个JS函数,该函数将在设备默认浏览器中打开给定的url。
window.open(link, '_system');
works just fine for iOS, but neither this, nor any other ways work for Android. 在iOS上可以正常使用,但在Android上则无法正常工作。 It either opens a link inside the app (instead of content), or doesn't open it at all.
它要么在应用程序内部打开一个链接(而不是内容),要么根本不打开它。
I have <access origin=".*"/>
; 我有
<access origin=".*"/>
; inside config.xml (tried different ways, none works). 在config.xml内部(尝试了不同的方式,没有办法工作)。
Is there any way to make it work? 有什么办法可以使其工作?
这是我的错误:我不小心将iOS的cordova.js文件复制到了Android的项目中。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.