Hi Team
I create ionic app for ios and submitted on Test Flight to test in devices
But i got following mail and warning from Apple.
App Store Connect
Dear Developer,
We identified one or more issues with a recent delivery for your app, “App Name” 0.0.1 (0.0.8). Your delivery was successful, but you may wish to correct the following issues in your next delivery:
When I tried to find UIWebView instances in the code, I found that they are used in at least 4 files generated.
For example: CDVUserAgentUtil.m CDVWKWebViewUIDelegate.m
etc…
Ionic version used to build iOS -> 5.2.5
Cordova version -> 9.0.0 (cordova-lib@9.0.1)
Apple just searches for “UIWebView” text on the app code, and cordova-ios have a lot of references, so you’ll get that warning even if using cordova-plugin-ionic-webview.
It’s soon to know if it will affect apps not using UIWebView or if a cordova-ios update will be needed in the future.
I think this is a major concern for ionic, I have checked in xcode and it is referenced a LOT of times, can someone at ionic confirm what the solution is for this I just received this from apple also:
I’m using wkwebview in an ionic 3 application and have updated the inappbrowser plugin to the latest version which also uses wkwebview but looking through xcode for any references i see 187 results in 25 files, so even if you don’t actively use UIWebview you are still affected
Apple deprecated the UIWebView on iOS 12 and have been warning people that they need to migrate to WKWebView. This is just a new way of warning so people become aware. I suppose they will eventually set a deadline and you’ll have to update cordova-ios and a few plugins that have UIWebView references or move to Capacitor.
Yeah! But Im using WKWebView already; this message indicates that im using UIWebView, which I think is not the case (prolly because a detection algo by apple). And in future updates apps might be declined because of that. So this should be taken as a concern
Apache Cordova Plugin inappbrowser. Contribute to apache/cordova-plugin-inappbrowser development by creating an account on GitHub.
iOS supports these additional options:
usewkwebview : set to yes to use WKWebView engine for the InappBrowser. Omit or set to no (default) to use UIWebView. Note: Using usewkwebview=yes requires that a WKWebView engine plugin be installed in the Cordova project (e.g. cordova-plugin-wkwebview-engine or cordova-plugin-ionic-webview). iOS supports these additional options:
From
WKSuspendInBackground
Default value is true (suspend).
Hope this can help. Till time not uploaded new app with these changes on TestFlight.