config.xml
file is a settings file controlling various settings of Cordova.version
1.0.0
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.DisallowOverScroll
false
true
if you want to disable the rubber-band scrolling for WebView.EnableViewportScale
false
true
to prevent viewport scaling through a <meta>
tag.AutoHideSplashScreen
true
false
to control the splashscreen when it’s hidden through a JavaScript API.BackupWebStorage
cloud
none
: disables any backups of web storage.cloud
: allows the web storage data to be backed up to iCloud.local
: allows only local backups (iTunes sync).UIWebViewDecelerationSpeed
normal
normal
: is the default speed for most native appsfast
: is the default speed for Mobile Safari.Orientation
*default
all
: to specify both portrait & landscape mode you would use the platform specific value alldefault
: screen orientation will be applied according to system default.landscape
: set screen orientation to landscape mode.portrait
: set screen orientation to portrait mode.Orientation
preference:default
, landscape
and portrait
value. all
is not possible for Global Settings.default
means all directions, but in iOS only portrait will be applied.