You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by GitBox <gi...@apache.org> on 2020/03/16 12:08:50 UTC

[GitHub] [cordova-ios] erisu commented on issue #661: Remove all UIWebView code?

erisu commented on issue #661: Remove all UIWebView code?
URL: https://github.com/apache/cordova-ios/issues/661#issuecomment-599500855
 
 
   * Use `cordova-ios@5.1.1`
   * Add `preference` flag `WKWebViewOnly` to the `config.xml`.
   
   **Must use a `WKWebView` plugin.**
   The following example uses the `cordova-plugin-wkwebview-engine` plugin:
   
   * Add plugin `cordova-plugin-wkwebview-engine`, preferably the latest version `1.2.1`
   * Add `preference` flag `CordovaWebViewEngine` to the `config.xml`.
   * Add `feature` attribute `CDVWKWebViewEngine` to the `config.xml`.
   
   **Example `config.xml` with `cordova-plugin-wkwebview-engine` plugin**
   ```
   <platform name="ios">
       <preference name="WKWebViewOnly" value="true" />
   
       <feature name="CDVWKWebViewEngine">
           <param name="ios-package" value="CDVWKWebViewEngine" />
       </feature>
   
       <preference name="CordovaWebViewEngine" value="CDVWKWebViewEngine" />
   </platform>
   ```
   
   **Still getting the warning?**
   If you are still getting the warning, most likely a plugin that you are using still references `UIWebView`. You will need to identify which plugin and contact the plugin developers and request them to fix it. They can either remove the references or make use of this flag to wrap the references.
   
   **All official Cordova plugins were updated to use the flag.**
   
   **Using Ionic WKWebView plugin?**
   If you are using Ionic's plugin, I believe the `UIWebView` references have already been removed from their latest version. 
   
   * Make sure you are using the latest version.
   * Make sure the `WKWebViewOnly` flag is set still for `cordova-ios` platform.
   
   The other `preference` and `feature` arguments seen in the example above are from `cordova-plugin-wkwebview-engine` and may not be needed for Ionic.
   
   If you have any issue or usage questions with the Ionic plugin. Read their docs and request help from their support channels.

----------------------------------------------------------------
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


With regards,
Apache Git Services

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