[英]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.