惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

博客园_首页
J
Java Code Geeks
IT之家
IT之家
Last Week in AI
Last Week in AI
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
B
Blog RSS Feed
P
Proofpoint News Feed
博客园 - Franky
MongoDB | Blog
MongoDB | Blog
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
博客园 - 【当耐特】
Microsoft Security Blog
Microsoft Security Blog
I
InfoQ
B
Blog
Stack Overflow Blog
Stack Overflow Blog
Martin Fowler
Martin Fowler
博客园 - 聂微东
Y
Y Combinator Blog
Recent Announcements
Recent Announcements
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
Apple Machine Learning Research
Apple Machine Learning Research
大猫的无限游戏
大猫的无限游戏
U
Unit 42
aimingoo的专栏
aimingoo的专栏

博客园 - Perfectionist

Modbus主从关系几点记录 EntityFramework Core几个基本命令的使用 Spring Boot Admin 日志查看功能 .NET Core 3.0 跟踪 【转】Influxdb 编译 块储存、对象存储、文件存储的区别和联系 各种工业以太网比较(EtherCAT,EtherNet/IP,ProfiNet,Modbus-TCP,Powerlink) 以太网与工业以太网的区别 PV和并发、以及计算web服务器的数量的方法 Apache泛域名解析 mysql的聚簇索引与非聚簇索引的简短总结 Kafka知识体系 Kafka下的生产消费者模式与订阅发布模式 微服务本质 服务发现比较:Consul vs Zookeeper vs Etcd vs Eureka 如何优雅的使用mybatis Spring Data JPA、MyBatis还有Hibernate有什么区别 微服务RPC框架选美 微服务 Rpc和Rest协议
Cordova套网站
Perfectionist · 2018-10-18 · via 博客园 - Perfectionist

用Cordova套网站,只修改Content的话,打包后的App,在点击后会打开浏览器,并没有在App中显示内容。

需要设置allow-navigation*

<?xml version='1.0' encoding='utf-8'?>
<widget id="org.microcyber.cloud.monitor" version="1.0.0" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
<name>mccloud</name>
<description>
A sample Apache Cordova application that responds to the deviceready event.
</description>
<author email="dev@cordova.apache.org" href="http://cordova.io">
Apache Cordova Team
</author>
<content src="http://10.10.10.10:8018/Default/Login" /><!--这里是网站的登陆页面-->
<plugin name="cordova-plugin-whitelist" spec="1" />
<access origin="*" />
<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>
<allow-navigation href="*" /><!--这里需要配置成允许所有地址-->
<engine name="android" spec="^7.1.1" />
</widget>