I have developed an ionic app that is for Android and iOS. When I try to submit the application to iOS I always receive the same error.
I searched in my entire pr
You might be using old ionic version. The version you have pasted in your question is version of Ionic CLI. run "ionic info" in you project folder to see what Ionic framework version you are using.
if you are using ionic framework 3+ version. then install ionic webview plugin by:
ionic cordova plugin add cordova-plugin-ionic-webview --save
I have fixed my app for the exact issue recently and Here are the steps I have followed to fix the issue:
cordova-plugin-ionic-webview
is updated to the latest version 5.0.0
. You need to run these two commands to do that.ionic cordova plugin remove cordova-plugin-ionic-webview
ionic cordova plugin add cordova-plugin-ionic-webview@latest
cordova-ios
is updated to the latest version 6.0.0
. Run this command to update it.npm install cordova-ios@latest --save
Check your package.json
to see if the versions are updated for both cordova-ios
and cordova-plugin-ionic-webview
.
Ensure you add WKWebViewOnly
preference to config.xml
file.
<platform name="ios">
<preference name="WKWebViewOnly" value="true" />
...
</platform>
ios
platform and add it again. Run these commands to remove and add the ios platform.ionic cordova platform rm ios
ionic cordova platform add ios
Now, when you build the ios app and publish it to the app store, you can see the issue will be fixed.