iOS Configuration
The config.xml file controls an app's basic settings that apply
across each application and CordovaWebView instance. This section
details preferences that only apply to iOS builds. See The config.xml
File for information on global configuration options.
-
EnableViewportScale(boolean, defaults tofalse): Set totrueto use a viewport meta tag to either disable or restrict the range of user scaling.<preference name="EnableViewportScale" value="true"/> -
MediaPlaybackRequiresUserAction(boolean, defaults tofalse): Set totrueto prevent HTML5 videos from playing automatically with theautoplayattribute. Does not apply when callingplay()on a video object.<preference name="MediaPlaybackRequiresUserAction" value="true"/> -
AllowInlineMediaPlayback(boolean, defaults tofalse): Set totrueto allow HTML5 media playback to appear inline within the screen layout, using browser-supplied controls rather than native controls. For this to work, add thewebkit-playsinlineattribute to any<video>elements.<preference name="AllowInlineMediaPlayback" value="true"/> -
BackupWebStorage(string, eithernone,local, or the defaultcloud): Set tocloudto allow web storage data to backup via iCloud. Set tolocalto allow only local backups via iTunes sync. Set tononeprevent web storage backups.<preference name="BackupWebStorage" value="local"/> -
TopActivityIndicator(string, defaults togray): Controls the appearance of the small spinning icon in the status bar that indicates significant processor activity. Valid values arewhiteLarge,white, andgray.<preference name="TopActivityIndicator" value="white"/> -
FadeSplashScreen(boolean, defaults totrue): Set tofalseto prevent the splash screen from fading in and out when its display state changes.<preference name="FadeSplashScreen" value="false"/> -
FadeSplashScreenDuration(float, defaults to2): Specifies the number of seconds for the splash screen fade effect to execute.<preference name="FadeSplashScreenDuration" value="4"/> -
ShowSplashScreenSpinner(boolean, defaults totrue): Set tofalseto hide the splash-screen spinner.<preference name="ShowSplashScreenSpinner" value="false"/> -
KeyboardDisplayRequiresUserAction(boolean, defaults totrue): Set tofalseto allow the keyboard to appear when callingfocus()on form inputs.<preference name="KeyboardDisplayRequiresUserAction" value="false"/> -
SuppressesIncrementalRendering(boolean, defaults tofalse): Set totrueto wait until all content has been received before it renders to the screen.<preference name="SuppressesIncrementalRendering" value="true"/> -
KeyboardShrinksView(boolean, defaults tofalse): Set totrueto scale down the webview when the keyboard appears, overriding the default beavior that shrinks the viewport vertically. This matches the default behaviour for Android apps.<preference name="KeyboardShrinksView" value="true"/>