Phonegap(应用程序错误...发生网络错误)
我已经使用phonegap创建了一个内部版本.在index.html文件中,我编写了一个用于加载网站的简单iframe.当我从phonegap中获取本地URL时,其工作正常.但是,如果我将整个版本作为zip上载到phonegap中,然后从中下载apk文件,则它不起作用.然后尝试将apk安装在手机中,显示应用程序错误.
I have created a build using phonegap. In the index.html file i have written a simple iframe for loading a website. Its working when i take the local url from the phonegap. But its not working if i upload the whole build as a zip in phonegap and then download the apk file from it. Then tried to install that apk in phone its showing the application error.
我已经检查了访问源,还尝试在其中提供域名.但是它根本不起作用.有人可以帮我吗?
I have already checked the access origin and also tried to give the domain name inside it. But its not at all working. Can anybody please help me on this.
config.xml和index.html如下所示
config.xml and index.html given like this below
<access origin="*"/>
<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>