config.xml
Last updated
Last updated
The config.xml
file is a settings file controlling various settings of Cordova.
Below are available elements and preferences you may need to configure:
Attribute | Type | Default Value | Description |
| String |
| A version number which is visible to users |
Example
Attribute | Type | Default Value | Description |
| String |
| The |
Example
Attribute | Type | Default Value | Description |
| String |
| Controls access to specific network domains. If set to |
Example
The <preference>
tag sets various options as pairs of name/value attributes. Each preference's name is case-insensitive. Many preferences are unique to specific platforms, as listed at the top of this page. The following sections detail preferences that apply to more than one platform.
Preference Name | Type | Default Value | Description |
| Boolean |
| Set to |
| Boolean |
| Set to |
| Boolean |
| Set to |
| String |
| There are 3 valid values:
|
| String |
| Controls the deceleration speed of momentum scrolling. There are 2 valid values:
|
| String |
| (Cordova 5.2 or Higher) There are 4 valid values:
|
Example
*: There are two use ways to configure Orientation
preference:
Global Settings:
It is also possible to apply the setting for all devices at once; however, you can only use default
, landscape
and portrait
value. all
is not possible for Global Settings.
2. Platform Specific Settings:
For Android/Windows, default
means all directions, but in iOS only portrait will be applied.