<?xml version='1.0' encoding='utf-8'?>
<widget id="io.cordova.hellocordova" version="0.0.1" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
<name>CordovaApp</name>
<description>
A sample Apache Cordova application that responds to the deviceready event.
</description>
<author email="dev@cordova.apache.org" >
Apache Cordova Team
</author>
<content src="index.html" />
<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>
</widget>
| 元素 | 詳細(xì) |
|---|---|
| widget |
在創(chuàng)建應(yīng)用程序時(shí)指定的應(yīng)用程序反向域值
|
| name |
在創(chuàng)建應(yīng)用程序時(shí)指定的應(yīng)用程序的名稱
|
| description |
應(yīng)用程序的說(shuō)明
|
| author | 應(yīng)用程序的作者 |
| content |
應(yīng)用程序的開(kāi)始頁(yè)面。它放在 www 目錄內(nèi)
|
| plugin |
目前已安裝的插件
|
| access | 用于控制訪問(wèn)到外部域。默認(rèn)原始值被設(shè)定為*,它表示允許訪問(wèn)的任何域。 此值不會(huì)允許某些特定的URL被打開(kāi),主要用以保護(hù)信息 |
| allow-intent | 可讓特定網(wǎng)址要求的應(yīng)用程序打開(kāi)。 例如, <allow-intent href = "tel:*" /> 將允許電話:鏈接打開(kāi)撥號(hào)程序 |
| platform |
用于構(gòu)建應(yīng)用程序的平臺(tái)
|