cordova-config.xml 配置记录

<?xml version='1.0' encoding='utf-8'?>
<widget id="come.gs.webapp1" version="1.0.0" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
    <name>我的app</name>//app 名称显示到桌面的
    <description>
        A sample Apache Cordova application that responds to the deviceready event.
    </description>
    <author email="tong" href="">
        Apache Cordova Team
    </author>
    <access origin="*" /> // 设置所有域名可访问
    <allow-navigation href="*://*.192.168.0.240:9090/*" />// 设置远程地址
    <content src="index.html" />
    <allow-intent href="http://*/*" />
    <allow-intent href="https://*/*" />
    <allow-intent href="tel:*" />
    <allow-intent href="sms:*" />
    <allow-intent href="mailto:*" />
    <allow-intent href="geo:*" />
    <platform name="android">
        <allow-intent href="market:*" />
    </platform>
    <platform name="ios">
        <allow-intent href="itms:*" />
        <allow-intent href="itms-apps:*" />
    </platform>
    <plugin name="cordova-plugin-whitelist" spec="1" />
    <plugin name="cordova-plugin-screen-orientation" spec="^3.0.1" />//启用的插件
    <engine name="ios" spec="^4.5.5" />
</widget>

  

posted on 2018-08-12 17:16  童彪  阅读(234)  评论(0编辑  收藏  举报

导航