我有一个Android应用程序,我们正在部署到有问题的BES12安全工作区。这有一个必须使用代理的Web浏览器。
此应用程序非常简单,它会打开一个网页,但是它会在应用程序中使用浏览器打开,该浏览器不会使用代理设置。
我需要这个应用程序打开一个网页,但使用PHONE BROWSER(我,在应用程序之外)。
我已阅读并关注多个线程,关于在手机浏览器中打开网址而非应用程序,但没有一个工作。
这是我的config.xml文件
<?xml version="1.0" encoding="UTF-8" ?>
http://www.w3.org/ns/widgets"
xmlns:gap = "http://phonegap.com/ns/1.0"
id = "(removed for security)"
version = "1.1.2"
versionCode = "10" >
<!-- versionCode is optional and Android only -->
<preference name="phonegap-version" value="3.6.3" />
<name>cURLs</name>
<description>
FGW Corporate URL Library
</description>
<author href="(removed for security)" email="(removed for security)">
Morgan
</author>
<icon src="icon.png" />
<preference name="orientation" value="portrait" />
<access origin="*" browserOnly="true"/>
<gap:plugin name="org.apache.cordova.inappbrowser" version="0.5.2" />
这里是应用程序本身(非常简单,只是在它的初期)
<html>
<head>
<title>
App Library
</title>
<meta name="apple-mobile-web-app-status-bar-style" content="blue">
<link href="css/bootstrap.min.css" rel="stylesheet">
<link href="css/custom.css" rel="stylesheet">
<script src="phonegap.js"></script>
</head>
<body>
<div class="container-fluid">
<p class="text-center" style="margin-top: 20%;">
<img src="icon.png" style="width:50%;">
</p>
<h1 class="text-center">
Welcome to cURLs
</h1>
<h2 id="show-once" class="text-center">cURLs is Loading..</h2>
<p id="slow-button" class="text-center" style="padding-top: 100px;">
<button type="button" class="btn btn-primary btn-large text-center" onclick="window.open('http://(removed for security)', '_blank', 'location=yes');">Reload cURLs Library</button>
</p>
</div>
</body>
<script>
// redirect to google after 5 seconds
window.setTimeout(function() {
window.open('http://(removed for security)', '_blank', 'location=yes');
}, 2000);
</script>
</html>
在第一次运行时,它会自动打开URL,但是如果需要,应用程序将保留在后台以重新加载最新版本。
我想要做的就是打开应用程序的URL OUTSIDE,即在默认浏览器中。
我也尝试过&#34; _system&#34;
的目标非常感谢帮助结束这种头痛
答案 0 :(得分:0)
好。这么简单,它咬人.. ..
在我的config.xml文件中添加了以下内容
<preference name="stay-in-webview" value="false" />
现在已经完成了