向Windows 8 Cordova应用程序添加privateNetworkClientServer功能 [英] Adding privateNetworkClientServer capability to Windows 8 Cordova Application
问题描述
如何/在哪里将privateNetworkClientServer功能添加到我的Cordova应用程序,以便它最终在编译的Windows 8应用程序清单文件。
How / where do I add the privateNetworkClientServer capability to my Cordova application so that it ends up in the compiled Windows 8 app manifest file. If i build, modify the built application manifest to ass the capability manually it is lost the second i press play as it overwrites the file.
感谢
推荐答案
好吧,所以我找到了答案,你需要在res\ cert \windows8中创建一个package.manifest文件
Okay so I found the answer, you need to create a package.manifest file in res\cert\windows8
然后我复制了除了Build:MetaData元素之外的之前构建的清单中的所有字段,并将我想要的能力添加到现有列表中。
I then copied all of the fields from manifest that was built prior with exception of the Build:MetaData element, and added my desired capability to the existing list.
现在当我编译它使用package.manifest作为基础,我得到我的能力。如果你问我一个黑客的一个简单的部分在Config.xml中就足够了。
Now when I compile it uses package.manifest as the base and I get my capability. Bit of a hack if you ask me, a simple section in Config.xml would suffice.
这篇关于向Windows 8 Cordova应用程序添加privateNetworkClientServer功能的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!