We are happy to announce that we have just released Cordova iOS 6.0.0
! This is Cordova's official platform for building iOS mobile applications.
To upgrade:
cordova platform remove ios cordova platform add ios@6.0.0
The most notable changes in this major release are:
Added Xcode 11 compatibility and bumped minimum iOS version to 11.0
As of April 2020, Apple requires all app store submissions to be built with Xcode 11 and target the iOS 13 SDK.
Apple has deprecated the mediaPlaybackRequiresUserAction
property in iOS 8.0–9.0 and replaced it with mediaTypesRequiringUserActionForPlayback
. Apple has also deprecated the mediaPlaybackAllowsAirPlay
property in iOS iOS 8.0-9.0 and replaced it with allowsAirPlayForMediaPlayback
.
If you have configured any of these properties in your project's config.xml
file, it is recommended that you update with the new preferences options MediaTypesRequiringUserActionForPlayback
or AllowsAirPlayForMediaPlayback
.
Additionally, the values for MediaTypesRequiringUserActionForPlayback
has changed. It use to be a boolean
value but is now a string
value of either all
, audio
, video
, or none
.
Moved WKWebView
support into Cordova-iOS and removed UIWebView
code
Due to this change, the cordova-plugin-wkwebview-engine
plugin is obsolete and will not work with this release. If you have this plugin installed, it is safe to remove with cordova plugin remove cordova-plugin-wkwebview-engine
.
Additionaly, WKURLSchemeHandler
support has been introduced with this release. Using a custom scheme to serve your app content through fixes CORS issues that exist because of the strict security policies that WKWebView
has applied to the file
scheme. You can easily configure your Cordova project to use a custom scheme by setting the preference options scheme
and hostname
in the config.xml
file.
<preference name="scheme" value="app" /> <preference name="hostname" value="localhost" />
It is important to know that with the introduction of WKURLSchemeHandler
, iOS 10 support has been dropped.
Integrated SplashScreen
plugin code & replaced Launch Images with Launch Storyboards
If you're migrating from launch images, details on how to set up images for Launch Storyboards can be found in the SplashScreen documentation.
Fixed overwriting the bundle identifier when there are multiple Xcode build targets
Bumped minimum CocoaPods version requirements to 1.8.0
Since CocoaPods 1.7.0, CDN support was introduced. It was later finalized in 1.7.2 but was not configured as the default until 1.8.0. Using CDN to fetch podspecs over the traditional GitHub repo provides a huge performance enhancement. With CDN, Cordova users no longer need to wait for the CocoaPod's GH repo to be synced. Building a project with pods and a fresh CocoaPods installation takes under a minute now.
You can take a look at their demonstration video here to see how fast CocoaPods has become with CDN.
Please report any issues you find at issues.cordova.io!
q
leftoveraudit-license-headers
): add & correct licenseEnglish.lproj
deprecated warningCordovaLib
q
dependencysuperspawn
shelljs
with fs-extra
ios-sim
^9.0.0
to ^8.0.2
package-lock.json
bin/cordova_plist_to_config_xml
fs-extra
w/ fixesxcode
w/ fixchmod
pod
): remove unused API & bump minimum version requirements to 1.8.0
cordova-common@4.0.1
orientation
bundleid
to main app targetorientation
methodsREADME
Podspec
for Cordova libraryUserAgent
): Drop CDVUserAgentUtil
and Implement for WKWebView
CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED
MediaTypesRequiringUserActionForPlayback
WKURLSchemeHandler
for serving app contentMediaTypesRequiringUserActionForPlayback
to proper variable typescordovaBoolSettingForKey
): improve boolean checks and native loggingmediaPlaybackAllowsAirPlay
mediaPlaybackRequiresUserAction
CDVURLProtocol
): deletestringByAddingPercentEscapesUsingEncoding
usageviewDidUnload
CDVWebViewEngine
): JavaScript to Native Call Not Workingnode
): require failure with shebang
interpreterdeployment-target
to 11.0
uiwebview
& add wkwebview
Podfile
var
to let
/const
eslint
with applied fixnode
requirement (>=10)Podfile