newish to phonegap并尝试理解现有的cordova / phonegap项目。我坚持的位是项目的现有config.xml,如下所示:
我不知道它是如何工作的,因为它不是标准的config.xml。任何帮助赞赏。当我构建项目时,不包括插件,即软键盘插件。似乎使用了默认的config.xml。
<?xml version="1.0" encoding="utf-8"?>
<cordova>
<!--
access elements control the Android whitelist.
Domains are assumed blocked unless set otherwise
-->
<access origin="http://127.0.0.1*"/> <!-- allow local pages -->
<access origin="*" subdomains="true" />
<log level="DEBUG"/>
<preference name="useBrowserHistory" value="true" />
<preference name="exit-on-suspend" value="true" />
<preference name="disallowOverscroll" value="true" />
<preference name="loadUrlTimeoutValue" value="60000" />
<plugins>
<plugin name="App" value="org.apache.cordova.App"/>
<plugin name="Device" value="org.apache.cordova.Device"/>
<plugin name="Camera" value="org.apache.cordova.CameraLauncher"/>
<plugin name="File" value="org.apache.cordova.FileUtils"/>
<plugin name="NetworkStatus" value="org.apache.cordova.NetworkManager"/>
<plugin name="Notification" value="org.apache.cordova.Notification"/>
<plugin name="Storage" value="org.apache.cordova.Storage"/>
<plugin name="Capture" value="org.apache.cordova.Capture"/>
<plugin name="SplashScreen" value="org.apache.cordova.SplashScreen"/>
<plugin name="Echo" value="org.apache.cordova.Echo" />
<plugin name="Globalization" value="org.apache.cordova.Globalization"/>
<plugin name="SoftKeyBoard" value="com.WebDevs.SoftKeyBoard" />
</plugins>
</cordova>
答案 0 :(得分:0)
请考虑这个hello world应用程序config.xml。我相信这可以被视为标准的config.xml,它必须驻留在root。 [与index.html一起]
<?xml version="1.0" encoding="UTF-8"?>
<widget xmlns = "http://www.w3.org/ns/widgets"
xmlns:gap = "http://phonegap.com/ns/1.0"
id = "com.phonegap.helloworld"
version = "1.0.0">
<name>HelloWorld</name>
<description>
Hello World sample application that responds to the deviceready event.
</description>
<author href="http://phonegap.com" email="support@phonegap.com">
PhoneGap Team
</author>
<access origin="*" />
</widget>
请参阅此link