Name
(required) Specifies a formal name for the app as it should appear on the device's home screen and within app store's.
Description
(optional) A description of what the application is about or what function it performs.
Author
(optional) The author of the application.
Attributes
email An email address for the author.
href a URL associated with the author (product page, blog etc).
Content
(optional) Defines the application's starting page in the top-level web assets directory (
www folder).
Attribute
src The file name/location of the starting page. Defaults to index.html.
Feature
Used for the specific case of updating the platform-level config.xml to include a certain plugin or customization
specific to that platform.
Attributes
name The name of a specific feature, typically a plugin API to access.
Child elements
param The name of the parameter to set a name and value for.
- name The name of the parameter to set a name and value for.
- value The name of the parameter to set a name and value for.
Not typically used with the CLI.
Access
(optional) Defines the set of external domains the app is allowed to communicate with. The "*" value for origin will allow the app to access any server.
See the
Domain Whitelist Guide for details.
Attributes
origin The domains to allow. Set to "*"
for all.
Currently required for iOS (fix in the works), otherwise defaults to all or ("*") if left out.
Preference
Sets different options for your application as pairs of name/value attributes.
Preference name is case-insensitive.
IMPORTANT: Most preferences are unique to a platform or subset of platforms (iOS, Android, Win, PhoneGap Build etc).
Attributes
name The name of the preference to set.
value The value of the preference to set.
BackupWebStorage
Set to
cloud
to allow web storage data to backup via iCloud. Set to
local
to allow only local backups via iTunes sync. Set to
none
prevent web storage backups.
webkit-playsinline
attribute to any
<video>
elements.
Default
cloud (string)
Valid values are
none, local and cloud
Supported Platforms
iOS
SuppressesIncrementalRendering
Set to
true
to wait until all content has been received before it renders to the screen.
Default
Supported Platforms
iOS
GapBetweenPages
The size of the gap, in points, between pages.
Default
Supported Platforms
iOS
PageLength
The size of each page, in points, in the direction that the pages flow. When
PaginationMode
is right to left or left to right, this property represents the width of each page. When
PaginationMode
is
topToBottom or bottomToTop
code, this property represents the height of each page. The default value is 0,
which means the layout uses the size of the viewport to determine the dimensions of the page.
Default
Supported Platforms
iOS
UIWebViewDecelerationSpeed
This property controls the deceleration speed of momentum scrolling.
normal
is the default speed for most native apps and
fast
is the default for Mobile Safari.
Default
normal (string)
Valid values are
normal, fast
.
Supported Platforms
iOS
KeepRunning
Determines whether the application stays running in the background even after a pause event fires. Setting this to
false
does not kill the app after a pause event, but simply halts execution of code within the cordova
webview while the app is in the background.
Default
Supported Platforms
Android
LoadUrlTimeoutValue
When loading a page, the amount of time to wait before throwing a timeout error.
Default
Supported Platforms
Android
SplashScreen
The name of the file minus its extension in the res/drawable directory.
Various assets must share this common name in various subdirectories.
Default
Supported Platforms
Android
SplashScreenDelay
The amount of time the splash screen image displays.
Default
Supported Platforms
Android
InAppBrowserStorageEnabled
Controls whether pages opened within an InAppBrowser can access the same localStorage and WebSQL storage as pages opened with the default browser.
Default
Supported Platforms
Android
LoadingDialog
If set, displays a dialog with the specified title and message, and a spinner, when loading the first page of an
application. The title and message are separated by a comma in this value string, and that comma is removed before
the dialog is displayed.
Default
Supported Platforms
Android
LoadingPageDialog
The same as LoadingDialog, but for loading every page after the first page in the application.
Default
Supported Platforms
Android
ErrorUrl
If set, will display the referenced page upon an error in the application instead of a dialog with the title "Application Error".
Default
Supported Platforms
Android
ShowTitle
Show the title at the top of the screen.
Default
Supported Platforms
Android
LogLevel
Sets the minimum log level through which log messages from your application will be filtered.
Default
ERROR (string)
Valid values are
ERROR, WARN, INFO, DEBUG, and VERBOSE
.
Supported Platforms
Android
SetFullscreen
Same as the
Fullscreen
parameter in the global configuration of this xml file. This Android-specific element is deprecated in favor of the global
Fullscreen
element, and will be removed in a future version.
Default
Supported Platforms
Android
AndroidLaunchMode
Sets the Activity
android:launchMode
attribute. This changes what happens when the app is launched from app icon or intent and is already running.
Default
singleTop (string)
Valid values are
standard, singleTop, singleTask, singleInstance
.
Supported Platforms
Android
ChildBrowser
Disables child browser windows. By default, apps launch a secondary browser window to display resources accessed via
window.open()
or by specifying a
_blank
anchor target.
Specify
disable
to override this default behavior.
Default
enable (string)
Valid values are
enable, disable
.
Supported Platforms
BlackBerry
WebSecurity
Set to
disable
to override web security settings, allowing access to remote content from unknown sources. This preference is intended as
a development convenience only, so remove it before packaging the app for distribution. For the released app, all URIs should
be known and whitelisted using the
<access>
element, described in the
Domain Whitelist Guide.
Default
enable (string)
Valid values are
enable, disable
.
Supported Platforms
BlackBerry