我使用phonegap创建了一个构建版本.在index.html文件中,我编写了一个用于加载网站的简单iframe.当我从phonegap中获取本地URL时,它正在工作.但是,如果我将整个构建作为一个zip在phonegap上传,然后从它下载apk文件,它不工作.然后尝试在手机中安装该apk,显示应用程序错误.
我已经检查了访问源,并尝试在其中提供域名.但它根本没有工作.任何人都可以帮我这个.
config.xml和index.html如下所示
<access origin="*"/>
Run Code Online (Sandbox Code Playgroud)
<html>
<head>
<meta charset="utf-8" />
<meta name="format-detection" content="telephone=no" />
<meta name="msapplication-tap-highlight" content="no" />
<!-- WARNING: for iOS 7, remove the width=device-width and height=device-height attributes. See https://issues.apache.org/jira/browse/CB-4323 -->
<meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width, height=device-height, target-densitydpi=device-dpi" />
<title>Testing</title>
</head>
<body>
<iframe src="http://www.w3schools.com" height="640px" width="100%" frameborder="0" scrolling="yes">
</iframe>
</body>
</html>Run Code Online (Sandbox Code Playgroud)