title: Safely remove UIWebView from ionic project + support iOS 10
body: <p>I'm working on an ionic project which is using <code>Cordova</code> and several plugins. </p>
  
  <p>According to Apple, we won't be able to submit app updates soon as we are currently getting a warning saying we are using <code>UIWebview</code> inside our app:</p>
  
  <blockquote>
    <p>The App Store will no longer accept new apps using <code>UIWebView</code> as of April 2020 and app updates using <code>UIWebView</code> as of December 2020.</p>
  </blockquote>
  
  <p>I've made a lot of researches to find out what's the concrete solution but nothing seems clear.
  Some people say Apple just detects if the whole project contains the string and some others say they only detect if an object is declared,.. Anyway, I've seen <code>Cordova</code> itself contains some <code>UIWebView</code> (Cordova 9.0.0 - Cordova-lib@9.0.1).</p>
  
  <ul>
  <li>Has someone be able to submit an app to App store Connect without getting the warning? </li>
  <li>is the project containing commented <code>UIWebview</code> elements? </li>
  <li>Is it safe to just replace <code>UIWebView</code> by <code>WKWebView</code> and only that? </li>
  <li>Is it possible to get a <code>Cordova</code> version without <code>UIWebview</code>? </li>
  </ul>
  
  <p>I'm also experiencing another issue related to iOS 10. 
  To support iOS 10 we must use <code>cordova-plugin-webview</code> 2.5.1 or less. (iOS 10 is ok but the css is a bit broken in my whole app). The problem is it is recommended to update this plugin to 4.X cause of the <code>UIWebview</code>. </p>
  
  <ul>
  <li>Then I'm wondering if someone is able to support iOS 10 without getting the <code>UIWebview</code> error and how? </li>
  </ul>
  
  <p>Here's some configurations I've set: 
      - cordova-plugin-webview v4.1.3,
      - cordova-plugin-inappbrowser v3.2.0,
      - cordova-ios 5.1.1 
      - wkwebviewonly to true in config.xml</p>
  
  <p>Here some interesting links I've found:</p>
  
  <p><a href="https://github.com/ionic-team/cordova-plugin-ionic-webview/issues/418" rel="nofollow noreferrer">https://github.com/ionic-team/cordova-plugin-ionic-webview/issues/418</a></p>
  
  <p><a href="https://stackoverflow.com/questions/59169309/how-to-remove-uiwebview-component-completely-in-current-project">How to remove UIWebView component completely in current project?</a></p>
  
  <p><a href="https://ionicframework.com/blog/understanding-itms-90809-uiwebview-api-deprecation/" rel="nofollow noreferrer">https://ionicframework.com/blog/understanding-itms-90809-uiwebview-api-deprecation/</a></p>
  
  <p>Let me know if you need more information about my environment. </p>