首页 > 其他 > 详细

cordova-config.xml 配置记录

时间:2018-08-12 18:08:13      阅读:278      评论:0      收藏:0      [点我收藏+]
<?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>

  

cordova-config.xml 配置记录

原文:https://www.cnblogs.com/tongbiao/p/9463636.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!