简体   繁体   English

我可以使用哪个config.xml?

[英]which config.xml do I work with?

Using phonegap, xcode, and cordova. 使用phonegap,xcode和cordova。 I have it installed, running, and I am building in it. 我已经安装,正在运行,并且正在其中构建。 However most of the docs I come by seem to be dated, and reference an old plist file to be used in getting plugins working. 但是,我所访问的大多数文档似乎都是过时的,并引用了一个旧的plist文件以用于使插件正常工作。 Then when you find reference that bridge the gap they always specifiy use the config.xml. 然后,当您找到缩小差距的参考文献时,他们总是指定使用config.xml。 Problem with that, is in installing in to the letter, I have two config xml files. 问题在于,在安装时,我有两个配置xml文件。 One above the www directory at the same level, and one within? 在同一级别的www目录上方,一个在内部?

Which one would I alter to get the ability to change the alerts? 我将更改哪一个以获得更改警报的功能? So in particular I can use 所以我特别可以使用

navigator.notification.alert(obj.data, 'my app', 'Done');

Also I found some references to a phonegap-xxxjs and that never came with my copy of phonegap, I assume when they stoped using one format, and switched over to the new they may have dropped that as well but I have no idea. 我还发现了一些对phonegap-xxxjs的引用,而我的phonegap副本却从未提供过这些引用,我认为当他们停止使用一种格式并切换到新格式时,他们可能也会删除该格式,但我不知道。

One file is Cordova's xml file (www) and the other is a platform-specific config.xml . 一个文件是Cordova的xml文件(www) ,另一个文件是特定平台的config.xml

I add all changes in the config.xml above the www directory which works fine. 我将所有更改添加到www目录上方的config.xml中,效果很好。 If you want to compile for iOS & android you may use the other one? 如果您想针对iOS android进行编译,则可以使用另一个?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 科尔多瓦:如何设置特定于平台的config.xml文件,科尔多瓦构建后该文件不会被覆盖? - Cordova: How to set Platform-specific config.xml file which is not overwritten after cordova build? 科尔多瓦:在config.xml中使用环境变量 - Cordova: Use environment variables in config.xml Adobe Phonegap图标,无config.xml文件 - Adobe Phonegap Icons, no config.xml file 使用环境变量/参数化config.xml - Using environment variables / parameterizing config.xml 通过config.xml的Opera扩展首选项 - Opera Extension Preferences through config.xml 我可以在Cordova应用程序中将配置从config.xml写入AndroidManifest.xml吗? - Can I write configuration from config.xml to AndroidManifest.xml in cordova applications config.xml覆盖结果导致购物车不可见? - config.xml override results in cart not visible? PhoneGap:如何在Config.xml中为iOS设置Build和Version属性? - PhoneGap: How to set Build and Version Property in Config.xml for iOS? Phonegap - 配置config.xml文件以启用摄像头 - Phonegap - configuring the config.xml file to enable the camera Cordova / Phonehap-从config.xml获取应用程序版本号 - Cordova/Phonehap - get app version number from config.xml
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM