Cordova 缺少权限 Windows Phone 和 Android

Cordova missing permissions Windows Phone and Android

我正在尝试使用 Cordova 为 Windows Phone 8+ 和 Android 4+ 构建应用程序。现在,当我尝试从外部源加载图像时,出现 Windows Phone

的以下错误

SEC7117: Network request to http://fundatie.ruben.dnz/CmsData/Artikelen/Fotos/1/0/100006/100006_main_800x800_1.jpg did not succeed. Your application manifest does not declare the following capabilities: internetClient privateNetworkClientServer

如何为 Windows Phone 声明这些功能?

我在 Visual Studio 2015 Enterprise 中使用 Cordova 5.1.1。我的布局来自 Ionic 侧边菜单模板。

我的申请 Application image

您可以在 config.xml 文件中使用首选项:

<widget>
<preference ... />

此外,如果您在将项目构建到目标平台后检查项目目录 - 例如:

...\bin\Windows Phone (Universal)\Release

如果您将清单发送至:

,您将在那里看到自动生成的清单
../res/native/windows

这将覆盖 config.xml 自动生成的清单文件的某些属性。 所以你可以试试这个方法。 无论如何,如果您设置了互联网权限,请检查自动生成的清单。

这就是我在 Cordova 项目中进行平台特定更改的方式。