The UIWebView problem with latest ionic CLI

Hi,
Need some help and answer.
I am struggling with then UIWebView problem a long time.
Following the steps on some forum doesn’t solve my problem.
So I am planning to create a new project and copy all the previous data to this project. Maybe it will be faster.

I am using latest Ionic CLI 6.12 now, create project and add ios platform and build ios as usual. But when I open this project in XCode, try to search “UIWebView”, there are still a lot in this project, some are comment out, some aren’t.
Is it normal?
I thought if I create a totally new project with latest ionic CLI, this problem will be gone.

Someone help.

The CLI has absolutly nothing do do wirh this problem.

Are you using cordova? Please check the version of cordova-ios in your project.

Hi,
The cordova-ios version is 4.5.5
What should I do?
Thank you.

Hi, I just search cordova-ios and got this:


Should I remove the ios older platform and add this 6.0.0 version?
Need advice, thank you.

You said that you followed the steps on the forum. The first step where everyone in the forum directs you is this page: Understanding ITMS-90809: UIWebView API Deprecation - Ionic Blog

From the Section Using Cordova?:

  • 5.1.0 has a conditional compile-time flag that disables UIWebView. This is an initial fix to prevent the Apple warning from being triggered.
  • 6.0.0 will remove the entirety of UIWebView. This is a breaking change with more changes needed, so it’ll be released sometime in the coming months. As of January 2020, no ETA for release is known but version 5.1.0 will work just fine.

If you the look into their Github you can see the latest Version is 6.1.1.

Thanks for your help.

Hi,
Need your help again.
I create a new project with: ionic-cli 6.12.1, cordova-ios 6.1.1.
Then add ios platform and build ios.
Open this project in Xcode, try search “uiwebview”, I still found a js file named: “swiper-bundle-xxx-xxx-xxxx.js” with lots of “uiwebview” word in it.
Is it normal? With this file exist, the project would be accepted by Apple?
I’m still learning ionic, please help.
Thank you.

Apple looks for real Usage of the UiWebView not only text occurances. And of course not in .js Files which is not the Apple native Language - so should be no problem :blush:

Thank you so much for you great help.

Still facing this problem.

“dependencies”: {
@angular/common”: “~10.0.14”,
@angular/core”: “~10.0.14”,
@angular/forms”: “~10.0.14”,
@angular/platform-browser”: “~10.0.14”,
@angular/platform-browser-dynamic”: “~10.0.14”,
@angular/router”: “~10.0.14”,
@ionic-native/app-version”: “^5.27.0”,
@ionic-native/core”: “^5.14.0”,
@ionic-native/geolocation”: “^5.14.0”,
@ionic-native/native-geocoder”: “^5.14.0”,
@ionic-native/onesignal”: “^5.18.0”,
@ionic-native/paypal”: “^5.28.0”,
@ionic-native/photo-viewer”: “^5.29.0”,
@ionic-native/sms-retriever”: “^5.27.0”,
@ionic-native/splash-screen”: “^5.0.0”,
@ionic-native/status-bar”: “^5.0.0”,
@ionic-native/stripe”: “^5.28.0”,
@ionic/angular”: “^5.6.9”,
“card.io.cordova.mobilesdk”: “^2.1.0”,
“com.paypal.cordova.mobilesdk”: “^3.5.0”,
“com.razorpay.cordova”: “^1.4.9”,
“cordova-browser”: “^5.0.4”,
“cordova-plugin-add-swift-support”: “2.0.2”,
“cordova-plugin-app-version”: “^0.1.9”,
“cordova-plugin-cocoapod-support”: “^1.6.2”,
“cordova-plugin-device”: “^2.0.2”,
“cordova-plugin-geolocation”: “^4.0.2”,
“cordova-plugin-ionic-keyboard”: “^2.2.0”,
“cordova-plugin-ionic-webview”: “^5.0.0”,
“cordova-plugin-nativegeocoder”: “^3.2.2”,
“cordova-plugin-sms-retriever-manager”: “^1.0.2”,
“cordova-plugin-splashscreen”: “^5.0.2”,
“cordova-plugin-statusbar”: “^2.4.2”,
“cordova-plugin-stripe”: “^1.5.3”,
“cordova-plugin-whitelist”: “^1.3.3”,
“cordova-plugin-wkwebview-engine”: “^1.2.2”,
“core-js”: “^2.5.4”,
“onesignal-cordova-plugin”: “2.8.0”,
“rxjs”: “^6.5.5”,
“rxjs-compat”: “^6.5.4”,
“tslib”: “^1.9.0”,
“zone.js”: “^0.10.3”
},
“devDependencies”: {
@angular-devkit/build-angular”: “~0.1000.8”,
@angular/cli”: “~10.0.8”,
@angular/compiler”: “~10.0.14”,
@angular/compiler-cli”: “~10.0.14”,
@angular/language-service”: “~10.0.14”,
@ionic/angular-toolkit”: “^2.3.3”,
@ionic/lab”: “2.0.11”,
@types/jasmine”: “~3.3.8”,
@types/jasminewd2”: “^2.0.9”,
@types/node”: “~8.9.4”,
“codelyzer”: “^6.0.2”,
“com-sarriaroman-photoviewer”: “^1.2.5”,
“cordova-android”: “^7.1.4”,
“cordova-ios”: “^6.2.0”,
“jasmine-core”: “^3.7.1”,
“jasmine-spec-reporter”: “~4.2.1”,
“karma”: “~4.1.0”,
“karma-chrome-launcher”: “~2.2.0”,
“karma-coverage-istanbul-reporter”: “~2.0.1”,
“karma-jasmine”: “~2.0.1”,
“karma-jasmine-html-reporter”: “^1.6.0”,
“protractor”: “5.4.0”,
“ts-node”: “7.0.0”,
“tslint”: “5.15.0”,
“typescript”: “^3.9.10”
},
“description”: “An Ionic project”,
“cordova”: {
“plugins”: {
“cordova-plugin-whitelist”: {},
“cordova-plugin-statusbar”: {},
“cordova-plugin-device”: {},
“cordova-plugin-splashscreen”: {},
“cordova-plugin-ionic-keyboard”: {},
“cordova-plugin-nativegeocoder”: {
“LOCATION_WHEN_IN_USE_DESCRIPTION”: “Use geocoder service”
},
“cordova-plugin-sms-retriever-manager”: {
“PLAY_SERVICES_VERSION”: “15.0.1”
},
“cordova-plugin-ionic-webview”: {},
“cordova-plugin-app-version”: {},
“cordova-plugin-geolocation”: {
“GEOLOCATION_USAGE_DESCRIPTION”: “We need your location for display nearest store.”,
“GPS_REQUIRED”: “true”
},
“com.razorpay.cordova”: {},
“com.paypal.cordova.mobilesdk”: {},
“cordova-plugin-stripe”: {},
“com-sarriaroman-photoviewer”: {},
“onesignal-cordova-plugin”: {}
},

please help me out of this I’m looking for long time.