-
Notifications
You must be signed in to change notification settings - Fork 985
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
UIWebview Depreciation warning still occurs with Cordova-iOS 5.1.1 #745
Comments
Can you provide us the list of plugins you are using?
|
cordova-plugin-camera 4.1.0 "Camera" |
What do you mean by
? |
< preference name="WKWebViewOnly" value="true" / > We have added the above preference tag in the config.xml file. |
hello @breautek , I'm facing the same issue. Was wondering if there was something in addition to |
There shouldn't need to do anything other than adding the preference and rebuilding, while using [email protected] There are some known plugins such as the inappbrowser that still references the deprecated APIs and therefore trigger the apple warning. So if you have any plugins that uses the UIWebVIew apis, those plugins needs to be updated as well. Currently at the time of writing, there is no updates for the inappbrowser, but there are pending PRs. You can try to remove/re-add the cordova platform, or try to use |
Hello @breautek. Thanks for your response. cordova-plugin-whitelist 1.3.4 "Whitelist" |
Can you confirm that you have the following in your <feature name="CDVWKWebViewEngine">
<param name="ios-package" value="CDVWKWebViewEngine" />
</feature>
<preference name="CordovaWebViewEngine" value="CDVWKWebViewEngine" /> https://github.com/apache/cordova-plugin-wkwebview-engine#configxml This should have been added to the config when the wkwebview plugin is installed, but please double check. |
@breautek I can see all these tags in our config.xml. |
Attached file has the contents of our config.xml file |
Facing the same issue. With adding |
Please let us know if there are any updates on this issue. |
@Jeevan2019 Are you sure you supplied the full plugin list? I had a look at your config.xml, and the plugins listed doesn't explain why the following is added
These would have been added by plugins but these features, I don't think would have came from any of your listed plugins. If you are using a sample app to test this with, I would advise you to test without any plugins at all, other than the required wkwebview plugin of of course. If it works, then then that proves the issue lies somewheres outside of You can then add each plugin one at a time, and retest if you want to pinpoint exactly which plugin is the source. If the source is revealed then you can create a ticket in the appropriate place. |
@breautek I think the The https://github.com/apache/cordova-ios/blob/master/bin/templates/scripts/cordova/defaults.xml |
@erisu that would explain my confusion. I was expecting |
Hi @breautek Please find the attached config.xml file |
Do we need to add this tag |
Whatever preferences you configure in I suspect that Cordova would automatically copy this information whenever you do You should never have to manually copy this preference information into the platform file. It is good to check it, though. |
@Jeevan2019 you should add It is not recommend to modify the |
@Jeevan2019 has placing |
@erisu @obryl I have added the key |
Thank you guys for your support. |
Still doesn't work for me :( Here is my plugins list, maybe you could advice me on what's wrong here:
|
Got it fixed by removing file-releated plugins, which by some reason were not listed in config.xml |
For future references, True source of plugin information is the package.json file as of cordova 9. Cordova still reads from config.xml for backwards compatibility but I don't think it writes to it now. Alternatively, you can use |
@Jeevan2019 glad you found a potential solution. Please do let us know if this issue can be closed. |
Hi @breautek, I also got same warning email from apple just now can you please help me if I need to add/remove any plugins???. I have used cordova-ios 5.1.1, ionicwebview 4.1.2 and inAppBrowser 3.2.0 (latest one modified to use WK instead of UIWebView) and below are the plugin list IONIC INFO: Ionic CLI : 5.4.4 (/usr/local/lib/node_modules/ionic) Cordova: Cordova CLI : 9.0.0 ([email protected]) Utility: cordova-res : 0.8.0 (update available: 0.8.1) System: ios-deploy : 1.9.4 also added in config.xml (config file at project root) Appriciate your help |
@rajashekaranugu Did you tried after doing |
@Jeevan2019 Please close this issue if your problem has been resolved. As for @rajashekaranugu, the problem you have is coming from the |
I also got same warning email from apple just now can you please help me if I need to add/remove any plugins???. I have used cordova-ios 5.1.1, |
I added them to |
@Jeevan2019 we have replaced Firebase plugin with FirebaseX plugin, updated inapp browser from 3.1.0 to 3.2.0, by default our app was using ionic-webView 4.1.2 and cordova-ios 5.1.1. and added just the preference to use "WKWEBVIEW" To true. Then with above changes we did not receive an email from apple. The main change we did is we have migrated Firebase plugin to FirebaseX plugin. To my understanding, Also I advice you to check ios.json under plugin folder. Most of the time when you build app with "ionic cordova build ios" should include all the settings and preferences mentioned in your root config file. if you have mentioned any more plugins in package.json which is not mentioned in root config.xml by running 'ionic cordova prepare ios' should add everything. Please COMPARE ios.json and "ionic cordova plugin list" |
Going to close since this is fixed. People having problems is because of plugins using UIWebView, usually because they are old and use old frameworks from google analytics, firebase, facebook, etc and since the usage is on the framework it won't appear on the code search, but it's there. |
@breautek We have created an app by adding the cordova-ios platform of version 5.1.0. Also added the WKWebView plugin and tag in config.xml. Upload the app on app store after doing 'cordova prepare ios', But still I am getting the Deprecated warning. |
I’m locking the issue because it’s fixed. As I said, a lot of plugins need to be updated because their frameworks were using UIWebView, including Facebook, google analytics and a few others, you’ll have to figure out which one and report in the plugin repo. |
Bug Report
Problem
We have updated the Cordova iOS library to the latest version 5.1.1 and the tag < preference name="WKWebViewOnly" value="true" / > was added to the config.xml. We have published the app to check whether the UIWebView depreciation doesn't occur again but the warning still appears. We have certain customers for whom we publish the apps. So when they receive this warning they are questioning us about it. Please let us know when will the updated Cordova ios version will be released with all UIWebview references removed.
What is expected to happen?
As per information in #715 the warning should not appear after setting WKWebViewOnly flag to true in config.xml
What does actually happen?
The below warning from Apple still appears.
We identified one or more issues with a recent delivery for your app, "Sample Test" 4.0.0 (4.0.1). Your delivery was successful, but you may wish to correct the following issues in your next delivery:
ITMS-90809: Deprecated API Usage - Apple will stop accepting submissions of apps that use UIWebView APIs . See https://developer.apple.com/documentation/uikit/uiwebview for more information.
After you’ve corrected the issues, you can upload a new binary to App Store Connect.
Command or Code
Environment, Platform, Device
iOS
Version information
Cordova CLI version: 9.0.0
Cordova iOS version: 5.1.1
XCode version: 10.1
OS: Mac OS High Sierra
Checklist
The text was updated successfully, but these errors were encountered: