cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] [cordova-docs] NiklasMerz commented on a change in pull request #1096: blog: add new post about current UIWebView updates
Date Mon, 20 Jul 2020 09:40:56 GMT

NiklasMerz commented on a change in pull request #1096:
URL: https://github.com/apache/cordova-docs/pull/1096#discussion_r457227356



##########
File path: www/_posts/2020-07-18-uiwebview-warning.md
##########
@@ -0,0 +1,44 @@
+---
+layout: post
+author:
+    name: Niklas Merz
+    url: https://twitter.com/niklasmaerz
+title:  "UPDATED: How to handle the 'Deprecated API Usage - UIWebView' warning while uploading
to the App Store"
+categories: howto
+tags: ios
+---
+
+We recently posted [instructions](/howto/2020/03/18/wkwebviewonly.html) how to update your
apps to remove all `UIWebView` references, because Apple now rejects all apps using `UIWebView`.
+
+We are talking about this warning:
+
+> ITMS-90809: Deprecated API Usage - Apple will stop accepting submissions of apps that
use UIWebView APIs.
+
+Some things have changed and new versions of cordova-ios have been released since the last
post.
+
+<!--more-->
+
+## Update cordova-ios to version 6.0.0 or newer
+
+Please update to the latest `cordova-ios` version to get the best compatibility with recent
iOS changes. As of this writing the current version is 6.1.0. Version 6.0.0 of cordova-ios
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. Serving
your app content through a custom scheme 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. Bear in mind that running your app with a custom URL
scheme changes the origin of your web code and you will lose access to web storage, such as
local storage, indexed DB, etc.

Review comment:
       ```suggestion
   Additionaly, `WKURLSchemeHandler` support has been introduced with this release. Serving
your app content through a custom scheme 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. **Bear in mind that running your app with a custom URL
scheme changes the origin of your web code and you will lose access to web storage, such as
local storage, indexed DB, etc.**
   ```
   
   Good point. Bold should work.




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


Mime
View raw message