Project Settings for iOS
The Cordova.plist settings file controls various settings of Cordova. This is application wide, and not set per CDVViewController instance.
- A list of Plugins allowed to be used in a CDVViewController (set in the Plugins dictionary - key is the servicename used in JavaScript, and the value is the Objective-C class for the plugin that is a CDVPlugin sub-class)
- A white-list of hosts (with no scheme nor path, hostnames or IP addresses only) that Cordova is allowed to connect to (set in the ExternalHosts array - wildcards allowed)
-
Various other settings (defaults err on not breaking existing apps)
a. UIWebViewBounce (boolean, defaults to YES) - set to NO if you don't want the WebView to rubber-band
b. TopActivityIndicator (string, defaults to 'gray') - this is the top spinning throbber in the status/battery bar, valid values are "whiteLarge", "white" and "gray"
c. EnableLocation (boolean, defaults to NO) - set to YES, to initialize the Geolocation plugin at start-up (so the fix on your location can be more accurate)
d. EnableViewportScale (boolean, defaults to NO) - set to YES to prevent viewport scaling through a meta tag
e. AutoHideSplashScreen (boolean, defaults to YES) - set to NO to control when the splashscreen is hidden through a JavaScript API
f. ShowSplashScreenSpinner (boolean, defaults to YES) - set to NO to hide the splash-screen spinner
g. MediaPlaybackRequiresUserAction (boolean, defaults to NO) - set to YES to not allow autoplayed HTML5 video
h. AllowInlineMediaPlayback (boolean, defaults to NO) - set to YES to allow inline HTML5 media playback, also, the video element in the HTML document must also include the webkit-playsinline attribute
i. OpenAllWhitelistURLsInWebView (boolean, defaults to NO) - set to YES to open all white-listed URLs in the main WebView
j. BackupWebStorage (string, defaults to 'cloud') - valid values are 'none', 'cloud' and 'local'. Set to 'cloud' to allow the web storage data to be backed up to iCloud, and set to 'local' to only allow local backups (iTunes sync). Set to 'none' to not allow any backups of web storage.
k. KeyboardDisplayRequiresUserAction (boolean, defaults to YES) - set to NO to open the keyboard when form elements get focus via the JavaScript focus() call.
l. SuppressesIncrementalRendering (boolean, defaults to NO) - set to YES to wait until all new view content has been received before it is rendered.