我目前正在开发一个适用于android和ios的混合应用程序。它使用了一个带有phonegap 3.0的inappbrowser插件。我需要隐藏url和导航按钮。根据post Cordova InAppBrowser - How to disable URL and Navigation Bar?,它可以在ios中工作
如何对Android项目执行相同的操作
提前感谢!Arun Sathyan
发布于 2013-10-09 15:30:39
您必须在html页面中使用它,请参阅此
http://docs.phonegap.com/en/2.3.0/cordova_inappbrowser_inappbrowser.md.html
function onDeviceReady() {
var ref = window.open('http://apache.org', '_blank', 'location=no');
ref.addEventListener('loadstart', function() { alert('start: ' + event.url); });
ref.addEventListener('loadstop', function() { alert('stop: ' + event.url); });
ref.addEventListener('exit', function() { alert(event.type); });
}发布于 2016-02-17 02:07:03
在config.xml文件中,确保您URL的模式与allow-intent标签中的匹配。
<allow-intent href="http://*/*/*" />
<allow-intent href="http://*/*" />
<allow-intent href="https://*" />https://stackoverflow.com/questions/19265164
复制相似问题