Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to fix UIWebView deprecated Ionic 4

When submitting my latest build, Apple suddenly returned a message saying that there was an issue, specifically:

ITMS-90809: Deprecated API Usage - Apple will stop accepting submissions of apps that use UIWebView APIs. See https://developer.apple.com/documentation/uikit/uiwebview for more information. What that means and are that related to using the IONIC framework. How to fix it.

like image 504
Mohamed Gadallah Avatar asked Sep 11 '19 08:09

Mohamed Gadallah


People also ask

Does ionic run in WebView?

Ionic apps are built using web technologies and are rendered using Web Views, which are a full screen and full-powered web browser.

What is UIWebView in iOS?

What is UIWebView? UIWebView is a deprecated iOS user interface control in Apple's UIKit framework. It loads HTML files and web content into an app view, rendering them as they would appear in a browser window.

What is WKWebView?

A WKWebView object is a platform-native view that you use to incorporate web content seamlessly into your app's UI. A web view supports a full web-browsing experience, and presents HTML, CSS, and JavaScript content alongside your app's native views.


1 Answers

The cordova team yesterday released 2019-11-25 a release [email protected]

This release resolves the ITMS-90809 alert from the apple store.

cordova platform remove ios
cordova platform add [email protected]

Add <preference name = "WKWebViewOnly" value = "true" /> to your config.xml file

Run "cordova prepare ios" to apply the changes.

https://cordova.apache.org/announcements/2019/11/25/cordova-ios-release-5.1.0.html#comment-4702612854

like image 56
lams Avatar answered Oct 22 '22 17:10

lams