Ionic ios app getting rejected for UIWebview

Hello there,

I’m trying to deploy the ionic app to App store connect, but it’s getting rejected because the use of UIWebview.

I have already followed all the steps provided to remove UIWebview from app. I have installed the WKWebview plugin and updated all the existing plugins in my project.

Please see the package.json file

{
“name”: “the-i-track”,
“version”: “0.0.1”,
“author”: “Ionic Framework”,
“homepage”: “http://ionicframework.com/”,
“private”: true,
“scripts”: {
“start”: “ionic-app-scripts serve”,
“clean”: “ionic-app-scripts clean”,
“build”: “ionic-app-scripts build”,
“lint”: “ionic-app-scripts lint”,
“preinstall”: “npm i typings -g”
},
“dependencies”: {
@angular/animations”: “5.2.11”,
@angular/common”: “5.2.11”,
@angular/compiler”: “5.2.11”,
@angular/compiler-cli”: “5.2.11”,
@angular/core”: “5.2.11”,
@angular/forms”: “5.2.11”,
@angular/http”: “5.2.11”,
@angular/platform-browser”: “5.2.11”,
@angular/platform-browser-dynamic”: “5.2.11”,
@ionic-native/android-permissions”: “^4.20.0”,
@ionic-native/app-version”: “^4.15.0”,
@ionic-native/barcode-scanner”: “^4.20.0”,
@ionic-native/camera”: “^4.20.0”,
@ionic-native/core”: “^4.12.2”,
@ionic-native/crop”: “^4.20.0”,
@ionic-native/file”: “^4.20.0”,
@ionic-native/file-path”: “^4.20.0”,
@ionic-native/file-transfer”: “^4.20.0”,
@ionic-native/geolocation”: “^4.12.2”,
@ionic-native/google-maps”: “^4.12.0”,
@ionic-native/native-geocoder”: “^4.17.0”,
@ionic-native/native-page-transitions”: “^4.20.0”,
@ionic-native/network”: “^4.12.2”,
@ionic-native/network-interface”: “^5.0.0”,
@ionic-native/push”: “^4.20.0”,
@ionic-native/screen-orientation”: “^4.20.0”,
@ionic-native/sms”: “^4.20.0”,
@ionic-native/social-sharing”: “^4.15.0”,
@ionic-native/splash-screen”: “~4.12.0”,
@ionic-native/status-bar”: “~4.12.0”,
@ionic-native/transfer”: “^3.14.0”,
@ionic/lab”: “^1.0.12”,
@ionic/pro”: “^2.0.3”,
@ionic/storage”: “^2.1.3”,
@ngx-translate/core”: “^9.1.1”,
@ngx-translate/http-loader”: “^4.0.0”,
@types/cordova”: “0.0.34”,
@types/xlsx”: “0.0.36”,
“bower”: “^1.8.4”,
“call-number”: “1.0.1”,
“chart.js”: “^2.8.0”,
“com.razorpay.cordova”: “^1.4.11”,
“com.telerik.plugins.nativepagetransitions”: “^0.6.5”,
“cordova-ios”: “5.1.1”,
“cordova-plugin-actionsheet”: “^2.3.3”,
“cordova-plugin-add-swift-support”: “^2.0.2”,
“cordova-plugin-android-permissions”: “^1.0.2”,
“cordova-plugin-cocoapod-support”: “^1.6.2”,
“cordova-plugin-crop”: “0.4.0”,
“cordova-plugin-device”: “^2.0.3”,
“cordova-plugin-dialogs”: “^2.0.2”,
“cordova-plugin-file”: “^6.0.2”,
“cordova-plugin-file-transfer”: “^1.7.1”,
“cordova-plugin-filepath”: “^1.5.8”,
“cordova-plugin-geolocation”: “^4.0.2”,
“cordova-plugin-googlemaps”: “2.7.1”,
“cordova-plugin-googlemaps-sdk”: “git+https://github.com/mapsplugin/cordova-plugin-googlemaps-sdk.git”,
“cordova-plugin-ionic-webview”: “^5.0.0”,
“cordova-plugin-nativegeocoder”: “^3.4.1”,
“cordova-plugin-networkinterface”: “^2.0.0”,
“cordova-plugin-splashscreen”: “^5.0.3”,
“cordova-plugin-statusbar”: “^2.4.3”,
“cordova-plugin-whitelist”: “^1.3.4”,
“cordova-plugin-wkwebviewxhrfix”: “git+https://github.com/TheMattRay/cordova-plugin-wkwebviewxhrfix.git”,
“cordova-plugin-x-socialsharing”: “^5.6.8”,
“cordova-sms-plugin”: “^1.0.0”,
“dbel431-dmap”: “^1.8.0”,
“es6-promise-plugin”: “^4.2.2”,
“font-awesome”: “^4.7.0”,
“ion-bottom-drawer”: “^1.0.3”,
“ionic”: “^4.3.0”,
“ionic-angular”: “3.9.2”,
“ionic-pullup”: “^3.0.1”,
“ionic-select-searchable”: “^2.10.0”,
“ionic2-rating”: “^1.2.2”,
“ionicons”: “3.0.0”,
“jquery”: “^3.4.1”,
“moment”: “^2.22.2”,
“phonegap-plugin-multidex”: “^1.0.0”,
“phonegap-plugin-push”: “2.3.0”,
“rxjs”: “5.5.11”,
“socket.io-client”: “^2.1.1”,
“sw-toolbox”: “3.6.0”,
“web-animations-js”: “^2.3.2”,
“xlsx”: “^0.15.4”,
“zone.js”: “0.8.26”
},
“devDependencies”: {
@ionic/app-scripts”: “3.2.3”,
“typescript”: “~2.6.2”
},
“description”: “An Ionic project”,
“cordova”: {
“plugins”: {
“phonegap-plugin-push”: {},
“phonegap-plugin-barcodescanner”: {},
“cordova-plugin-googlemaps”: {
“LOCATION_WHEN_IN_USE_DESCRIPTION”: “This app wants to get your location while this app runs only.”,
“LOCATION_ALWAYS_USAGE_DESCRIPTION”: “This app wants to get your location always, even this app runs in background.”
},
“cordova-plugin-crop”: {},
“cordova-plugin-device”: {},
“cordova-plugin-dialogs”: {},
“cordova-plugin-file”: {},
“cordova-plugin-file-transfer”: {},
“cordova-plugin-filepath”: {},
“cordova-plugin-geolocation”: {},
“cordova-plugin-ionic-webview”: {},
“cordova-plugin-nativegeocoder”: {
“LOCATION_WHEN_IN_USE_DESCRIPTION”: “Use geocoder service”
},
“cordova-plugin-networkinterface”: {},
“cordova-plugin-splashscreen”: {},
“cordova-plugin-statusbar”: {},
“cordova-plugin-x-socialsharing”: {
“PHOTO_LIBRARY_ADD_USAGE_DESCRIPTION”: “This app requires photo library access to function properly.”,
“PHOTO_LIBRARY_USAGE_DESCRIPTION”: “This app requires photo library access to function properly.”
},
“cordova-sms-plugin”: {},
“mx.ferreyra.callnumber”: {},
“cordova-plugin-actionsheet”: {},
“cordova-plugin-android-permissions”: {},
“com.telerik.plugins.nativepagetransitions”: {},
“com.razorpay.cordova”: {},
“cordova-plugin-whitelist”: {},
“cordova-plugin-wkwebviewxhrfix”: {}
},
“platforms”: [
“ios”
]
}
}

change your cordova-ios version 5.0.0

does it uses WKWebview? I followed this link solution https://ionicframework.com/blog/understanding-itms-90809-uiwebview-api-deprecation/ but unfortunately no success.

which cordova ios version are you use

cordova-ios version 5.1.1

I’m stuck here from last three days… any solution for this issue?

1 Like

<preference name="WKWebViewOnly" value="true"></preference> is set?

Open the builded xCode Proj and search for “UiWebView” References: What do you found?

I am also stuck, please if you find the answer tell us.

Hello guys… any solution found for this issue… It’s getting worse issue now… Please help…:frowning:

Hi

I have installed ordova-ios@5.1.1 and using plugins which may have some UIWebView references such as google-plus, facebook4 and social sharing.
Also I’ve added the right configuration to config.xml but still failed to successfully upload to App Store. They keep rejecting my first app and now my build number is 1.0.21 !!! 21 Tries I’ve made but still failing.

Did you ever get this resolved @AnjaliJ18 ? I’m facing the same issue