'Apple App store Reject App Submission with Deprecated API Usage error apps that use UIWebView are no longer accepted. Instead, use WKWebView
Apple Reject by distribution submission width ITMS-90809: Deprecated API Usage - New apps that use UIWebView are no longer accepted. Instead, use WKWebView
Specification: ionic 4 width capacitor 3
I do extensive research and try multiple solution that I found online,
like
i remove Swiper.js because that is using UIWebView,
i also remove every file that contain UIWebView in it
now i run grep command
grep -iRl "UIWebView"
./node_modules/@ionic/core/dist/docs.json
./node_modules/firebase/node_modules/@firebase/auth/dist/auth.js.map
./node_modules/firebase/node_modules/@firebase/auth/dist/auth.esm.js.map
./node_modules/firebase/firebase.js.map
./node_modules/firebase/firebase-auth.js.map
./node_modules/ua-parser-js/test/browser-test.json
./ios/App/Pods/AppAuth/README.md
./ios/App/Pods/FirebaseAuth/Frameworks/FirebaseAuth.framework/FirebaseAuth
./ios/App/Pods/FirebaseAuth/Frameworks/FirebaseAuth.framework/Headers/FIRAuthErrors.h
above is the list of files which contain UIWebView.
now the problem is above files are related to firebase and I can't remove firebase also few months ago I upload my app to apple store without any issue, but the same package or any other package is causing problem,
so can anyone please help me what could be the root cause of the issue and any possible fix for the issue.
"firebase": "^8.10.1",
"capacitor-firebase-auth": "^3.0.0",
config.xml
<preference name="ScrollEnabled" value="false" />
<preference name="WKWebViewOnly" value="true" />
<preference name="android-minSdkVersion" value="22" />
<preference name="android-targetsdkversion" value="29" />
<preference name="SplashScreenDelay" value="1200" />
<preference name="FadeSplashScreenDuration" value="300" />
<preference name="CameraUsesGeolocation" value="false" />
<preference name="DisallowOverscroll" value="true" />
<preference name="StatusBarOverlaysWebView" value="false" />
<preference name="cordova.plugins.diagnostic.modules" value="CAMERA CALENDAR NOTIFICATIONS" />
package.json
"dependencies": {
"@angular-devkit/schematics": "^13.3.2",
"@angular/common": "~12.1.1",
"@angular/core": "~12.1.1",
"@angular/fire": "^6.1.5",
"@angular/forms": "~12.1.1",
"@angular/platform-browser": "~12.1.1",
"@angular/platform-browser-dynamic": "~12.1.1",
"@angular/router": "~12.1.1",
"@awesome-cordova-plugins/core": "^5.40.0",
"@awesome-cordova-plugins/push": "^5.40.0",
"@capacitor-community/photoviewer": "^1.1.3",
"@capacitor/android": "3.4.3",
"@capacitor/app": "1.0.3",
"@capacitor/browser": "^1.0.7",
"@capacitor/camera": "^1.3.1",
"@capacitor/core": "^3.4.3",
"@capacitor/device": "^1.0.3",
"@capacitor/filesystem": "^1.0.5",
"@capacitor/haptics": "1.1.0",
"@capacitor/ios": "3.4.0",
"@capacitor/keyboard": "1.1.0",
"@capacitor/network": "^1.0.3",
"@capacitor/splash-screen": "^1.2.2",
"@capacitor/status-bar": "1.0.3",
"@ionic-native/core": "^5.36.0",
"@ionic-native/market": "^5.36.0",
"@ionic/angular": "^5.5.2",
"add": "^2.0.6",
"capacitor-firebase-auth": "^3.0.0",
"chart.js": "^3.7.1",
"convert": "^4.4.2",
"cordova-cli": "^1.0.0",
"cordova-plugin-market": "^1.2.0",
"firebase": "^8.10.1",
"grecaptcha": "^1.0.3",
"ionic-selectable": "^4.9.0",
"jetifier": "^2.0.0",
"moment-timezone": "^0.5.33",
"ngx-joyride": "^2.5.0",
"node-sass": "^7.0.1",
"phonegap-plugin-push": "^2.3.0",
"rxjs": "~6.6.0",
"tslib": "^2.2.0",
"yarn": "^1.22.18",
"zone.js": "^0.11.5"
},
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|