Cordova套網站

用Cordova套網站,只修改Content的話,打包後的App,在點擊後會打開瀏覽器,並無在App中顯示內容。android

須要設置allow-navigation*ios

<?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>
相關文章
相關標籤/搜索