I have migrated my Ionic v1 project from UIWebView to WKWebView. My app has been rejected 4 times already by Apple as it says there are references to UIWebView still in the project somewhere. I simply don’t have the time (right now) to finally upgrade the project from v1 to v4…so I need to get this to work. I updated the webview with the following:
cordova-plugin-ionic-webview
npm install @ionic-native/ionic-webview
And I added the following to my config.xml:
<preference name="WKWebViewOnly" value="true" />
<feature name="CDVWKWebViewEngine">`
<param name="ios-package" value="CDVWKWebViewEngine" />
</feature>
<preference name="CordovaWebViewEngine" value="CDVWKWebViewEngine" />
I removed the project ionic cordova platform rm ios
, added it back in, then did ionic cordova prepare ios
. But when I do a global project search for UIWebView
(in Xcode) it returns 115 references across 15 files (listed below). I don’t want to keep submitting my project waiting around for rejections as its a waste of time.
What else can I do to ensure my project is now Apple safe for submission?
My Ionic Info (with question after):
Ionic:
Ionic CLI : 6.10.1 (/usr/local/lib/node_modules/@ionic/cli)
Ionic Framework : ionic1 1.0.0 <-- question about this below
@ionic/v1-toolkit : 1.0.22
Cordova:
Cordova CLI : 9.0.0 (cordova-lib@9.0.1)
Cordova Platforms : ios 5.1.1
Cordova Plugins : cordova-plugin-ionic-keyboard 2.2.0, cordova-plugin-ionic-webview 5.0.0, (and 32 other plugins)
Utility:
cordova-res : 0.15.1
native-run (update available: 1.2.2) : 1.0.0
System:
ios-deploy : 1.10.0
ios-sim : 8.0.2
NodeJS : v10.21.0 (/usr/local/Cellar/node@10/10.21.0/bin/node)
npm : 6.14.4
OS : macOS Catalina
Xcode : Xcode 11.5 Build version 11E608c
I am on Ionic/CLI: 6.10.1 and Ionic Framework ionic1 1.0.0
- however, my bower.json file shows:
{
"name": "HelloIonic",
"private": "true",
"devDependencies": {
"ionic": "ionic-team/ionic-bower#1.3.4"
}
}
But I don’t have bower installed on my Mac. Am I actually running framework v1.0.0 or am I running v.1.3.4? I don’t think I am truly running v.1.3.4 - which could be a part of the Apple app rejection - Question: what is the PROPER way to upgrade ionic framework (not the CLI)
Here are the file references still in my project - which one are causing the problems? All of them or some of them? I am not certain if any of these are from my plugins, but I don’t think they are, I think they are from base Cordova, but I can’t tell.
CDVCommandDelegate.h
CDVCommandDelegateImpl.m
CDVUserAgentUtil.m
CDVViewController.m
CDVWebViewEngineProtocol.h
CDVIntentAndNavigationFilter.h
CDVIntentAndNavigationFilter.m
CDVLocalStorage.m
CDVUIWebViewNavigationDelegate.h
CDVUIWebViewNavigationDelegate.m
CDVUIWebViewDelegate.h
CDVUIWebViewDelegate.m
CDVUIWebViewEngine.h
CDVUIWebViewEngine.m
CDVMainViewController.m
1 post - 1 participant