小编Min*_*hao的帖子

如何使用白名单配置Cordova-android 4.0

最后得到Android stuido与cordova-android 4.0一起工作,但我读到我们必须安装白名单插件,但我不知道如何配置此插件与cordova-android 4.0一起使用.我得到错误消息如下

04-13 16:30:31.291      856-856/com.vs.VSMF W/Web Console? No Content-    Security-Policy meta tag found. Please add one when using the cordova-plugin-whitelist plugin. at file:///android_asset/www/plugins/cordova-plugin-whitelist/whitelist.js:25
04-13 16:30:41.290      856-856/com.vs.VSMF D/SystemWebChromeClient? file:///android_asset/www/plugins/cordova-plugin-whitelist/whitelist.js: Line 25 : No Content-Security-Policy meta tag found. Please add one when using the cordova-plugin-whitelist plugin.
Run Code Online (Sandbox Code Playgroud)

这似乎是configure.xml的错误

<?xml version="1.0" encoding="UTF-8"?>


<widget xmlns     = "http://www.w3.org/ns/widgets"
    xmlns:gap = "http://phonegap.com/ns/1.0"
    id        = "com.vs.VSMF"
    version   = "1.0.0">

<name>VSMF</name>

<description>
    VSMF project template.
</description>

<author href="" email="dong_dh@hotmail.com">
    Hua Dong
</author>

<!--
    Enable individual API permissions …
Run Code Online (Sandbox Code Playgroud)

android whitelist cordova cordova-plugins

16
推荐指数
1
解决办法
3万
查看次数

Cordova 5.0.0安卓应用无法使用Android 4.0.0连接到互联网

我正在使用Windows 7开发cordova应用程序.模拟器可以将Internet连接到浏览器,但应用程序因网络错误而失败

检查[link here]

使用最新的cordova android 4.0.0进行开发

Cordova 5.0.0 Cordova-android 4.0.0

我已经将白名单添加为cordova项目的新插件.检查这里链接

我的config.xml文件定义如下,访问所有URL.我真的不知道哪里出错了.请指教.

   <?xml version="1.0" encoding="UTF-8"?>

   <widget xmlns     = "http://www.w3.org/ns/widgets"
        xmlns:gap = "http://phonegap.com/ns/1.0"
        id        = "com.vs.VSMF"
        version   = "1.0.0">

    <name>VSMF</name>

    <description>
        VSMF project template.
    </description>

    <author href="" email="dong_dh@hotmail.com">
        Hua Dong
    </author>

    <!--
        Enable individual API permissions here.
        The "device" permission is required for the 'deviceready' event.
    -->
    <feature name="http://api.phonegap.com/1.0/device" />

    <!--
        If you do not want any permissions to be added to your app, add the
        following …
Run Code Online (Sandbox Code Playgroud)

android cordova

7
推荐指数
2
解决办法
2万
查看次数

标签 统计

android ×2

cordova ×2

cordova-plugins ×1

whitelist ×1