Windows Phone的功能与科尔多瓦 [英] Windows Phone Capabilities with Cordova

查看:197
本文介绍了Windows Phone的功能与科尔多瓦的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有根据UDP套接字访问Windows手机的功能问题。

I have problems with the capabilities of the windows phone according to UDP Socket Access.

我知道我必须设置功能internetClientServer和privateNetworkClientServer
(参见:的 https://msdn.microsoft.com/en-us/library/windows/apps/hh464936.aspx

I know that i have to set up the capabilities "internetClientServer" and "privateNetworkClientServer" (see: https://msdn.microsoft.com/en-us/library/windows/apps/hh464936.aspx)

但我不知道我要的设置,其中这些能力应该插入清单文件。我发现了一个旧的问题有类似的问题,但多数民众赞成在不工作。
(参见:添加privateNetworkClientServer能力,Windows 8的应用程序科尔多瓦

But I dont know where I have to setup the manifest file where these capabilities should be inserted. I found a older question with a similar problem but thats not working. (see:Adding privateNetworkClientServer capability to Windows 8 Cordova Application)

我延长了UDP插件in.girish.datagram与Windows Phone的部分,并与以下行调整根据plugin.xml文件。 (只有部分功能)

I extended the UDP Plugin "in.girish.datagram" with the Windows Phone Part and adapt the according plugin.xml file with the following lines. (only the capability part)

      <config-file target="res/cert/windows8/AppxManifest.xml" parent="/Package/Capabilities">
    <Capability Name="internetClientServer" />
    <Capability Name="privateNetworkClientServer" />
  </config-file>



我觉得目标信息是错误的,但我不知道什么是正确的。这将是非常好的,如果有人知道的解决方案。

I think the target information is wrong but i dont know what is the right one. It would be very nice if somebody knows a solution.

感谢您的帮助!

推荐答案

我想我找到我的问题是什么,internetClientServer和privateNetworkClientServer应该插入这是只有内部的Windows Phone 8.1的解决方案提供的package.appxmanifest文件的功能。

I think I found what my problem is, the capabilities internetClientServer and privateNetworkClientServer should be inserted into the package.appxmanifest file which is only available inside Windows Phone 8.1 solutions.

在的Windows Phone 8的解决方案此文件被命名为WMAppManifest。

In windows phone 8 solutions this file is named WMAppManifest.

看到这个articel有关包的区别.appxmanifest和wmappmanifest文件:
HTTP: //bsubramanyamraju.blogspot.in/2014/07/wp80-vs-wp81-all-about.html

see this articel about the difference of the package.appxmanifest and the wmappmanifest file: http://bsubramanyamraju.blogspot.in/2014/07/wp80-vs-wp81-all-about.html

这篇关于Windows Phone的功能与科尔多瓦的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆