问题
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.
Thanks
回答1:
Okay so I found the answer, you need to create a package.manifest file in res\cert\windows8
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.
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.
来源:https://stackoverflow.com/questions/25930856/adding-privatenetworkclientserver-capability-to-windows-8-cordova-application