Closed sabahang closed 4 years ago
Have you considered checking the plugin issues before reporting the issue affirming none of them is faulty? Or do a search on this repository?
Because the faulty plugin is capacitor-firebase-auth, it’s reported in their repository and has been reported here too https://github.com/ionic-team/capacitor/issues/2863
@jcesarmobile thanks for the tip. Indeed you were right and I appreciate taking the time to find the issue for me. However I didn't suspect the plugin because it was rather difficult for me to detect that this plugin is the culprit as when you searched UIWebView in the project everything that came up was related to CapacitorCordova pod and nothing related to this plugin. Even the workaround in that plugin according to the issue you sent is around changing TwitterKit to TwitterKit5 which for an unfamiliar person has no immediate relation to UIWebView. This plugin is recommended amongst the Capacitor (non-Cordova) plugins on Capacitor Community plugins page and all the time I was under the impression that as it's not Cordova plugin it should be fine. It would be nice if recommended community plugins would have some compatibility notes or if you could advise a more bullet proof way (than above) to detect if a plugin is the culprit in this case. Thanks alot
Those are not recommended plugins, just user plugins. Anybody can submit their plugins there, we just check that they have a reasonable readme and support at least iOS and Android (unless it's something platform specific) That plugin was submitted 14 months ago when the ITMS-90809 problem wasn't a thing, and even if it was, it's not something we test when we accept the user plugins.
ITMS-90809 is not a cordova problem, it has affected all apps and frameworks as long as they used UIWebView. (even native apps) We fixed it in Capacitor in version 1.2.0 back in September. Doing a text search is not good for detecting the problem because Apple doesn't do that, they check for real UIWebView usage and Capacitor doesn't use it since 1.2.0.
The problem is usually in .framework files where you can't do text search inside. Frameworks from facebook, twitter, firebase, google, linkedin among others have had the problem and most of them have been updated, but plugins/libraries using the old version of the framework had not been updated and still have the problem.
Sadly I don't know how to do the search inside a .framework file. But the community plugin page links the github repository, so you can visit it and see if somebody already reported it, as in this case.
Changing TwitterKit to TwitterKit5 is not something you should do as an user, is something the plugin author should do, because it might require native code changes, and then do a new plugin release.
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Capacitor, please create a new issue and ensure the template is fully filled out.
Bug Report
npx cap doctor
output:Affected Platform(s)
Current Behavior
According to this blog post UIWebView references in CapacitorCordova pod shouldn’t trigger the warning (now rejection) from app store however since this week apple store is not letting me submit my ionic 5 with Capacitor and all packages with latest updates anymore.
Taken from: https://ionicframework.com/blog/understanding-itms-90809-uiwebview-api-deprecation/
See the response of Apple on the screenshot below.
Expected Behavior
I would be able to submit my Capacitor with latest updates to app store
Sample Code or Sample Application Repo
I’m only using two Capacitor plugins which to my knowledge aren’t referencing UIWebView (see the second screenshot showing all the references from CapacitorCordova pod). These are the plugins I use:
Is this the fault of Ionic or am I doing something wrong?
Here is my package.json file:
capacitor.config.json:
Reproduction Steps
Build a release app from Xcode and try to upload it to Testflight or appstore
Other Technical Details
npm --version
output: 6.14.4node --version
output: v14.1.0pod --version
output (iOS issues only): 1.9.1PS: cross posted here: https://forum.ionicframework.com/t/capacitorcordova-pods-references-to-uiwebview-cause-app-store-rejections/188927
Other Information