Adding privateNetworkClientServer capability to Windows 8 Cordova Application

主宰稳场 提交于 2019-12-01 06:00:21

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!