config.xml
file is a settings file controlling various settings of Cordova.version
1.0.0
android-versionCode
version
attribute is "1.22.33"
, it will be 102233 (=1 * 10000 + 22 * 100 + 33). If the project uses Crosswalk, it will be 2xxxxxx
for ARM architecture and 7xxxxxx
for x86 architecture.src
indext.html
<content>
element defines the app's starting page in the top-level web assets directory. You can change the starting page by changing the value of the src
attribute to your preferred URL.origin
*
*
, you can access all domains from your app.<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.KeepRunning
true
DisallowOverscroll
false
Fullscreen
false
SplashScreenDelay
3000
LogLevel
ERROR
ERROR
, DEBUG
, WARN
, INFO
and VERBOSE
.AndroidPersistentFileLocation
*Internal
Internal
: will put persistent files under the user’s application internal storage directory.Compatibility
: will put persistent files under storage root.ScreenOrientation
**default
default
: uses system default screen orientation.landscape
: sets screen orientation to landscape mode.portrait
sets screen orientation to portrait mode.config.xml
does not specify a location for the persistent filesystem. Switching the value of AndroidPersistentFileLocation
to Internal
would mean that existing users who upgrade their application may be unable to access their previously-stored files, depending on their device.ScreenOrientation
preference:android-targetSdkVersion
in the <preference>
tag.