fluttercommunity / flutter_webview_plugin

Community WebView Plugin - Allows Flutter to communicate with a native WebView.
https://pub.dev/packages/flutter_webview_plugin
Other
1.48k stars 932 forks source link

Deprecated API Usage on iOS when uploading app to AppStore #538

Open rafalbednarczuk opened 5 years ago

rafalbednarczuk commented 5 years ago

I got this message after today uploading iOS app on app store. It seems there is newer version of UIWebView.

Dear Developer,

We identified one or more issues with a recent delivery for your app, "app_name" 0.0.17 (17). 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 use Xcode or Application Loader to upload a new binary to App Store Connect.

Best regards,

The App Store Team
charafau commented 5 years ago

Strange, plugin doesn't use UIWebView but WKWebview .. this needs more investiagation

Ali1Ammar commented 5 years ago

same with me any solution

Ali1Ammar commented 5 years ago

is it mean app will not accepting in apple store ? or just webview won't work

Ali1Ammar commented 5 years ago

i use 0.3.7 if i use old version like 0.3.5 ,is will work or not

irineusturza commented 5 years ago

Same problem here @Ali1Ammar

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.

My app was not accepted by apple because of that.

Please @charafau , do you have any solution?

charafau commented 5 years ago

I'm chasing the issue, need to find some iOS developer, because plugin doesnt use UIWebView, when I set ios target to 13 xcode doesnt show me any warning regarding deprecated apis either

Ali1Ammar commented 5 years ago

I think it is just warning my app review by manual apple and doesn't say anything about it (but it is not accepted for another reason). this message just show when upload code to app store after processing code automatically .

I will explain when I got a this message when I upload code from xcode to app store and in developer accounts the app in processing after some houre I get email with NSlocation error and some other issues and this webview issue when i solve all issues and still just webview my app change from processing to prepare for submission and sent it to submission and get other email after week without any things about webview.

if you send to apple ask him about this maybe it is just warning for all people who use webview old and new .

I'm sorry my language not good

charafau commented 5 years ago

@rafalbednarczuk is that the only dependency in your app? I think it's not plugin's fault.

sagarbagsariya commented 5 years ago

facing the same

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

charafau commented 5 years ago

@sagarbagsariya do you have different plugins? does this message pops without any plugin at all ?

limzhipeng-kumoten commented 5 years ago

Facing the same issue here, I only used flutter_webview_plugin in the apps.

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.

No idea if dependencies or another packages causing this.

limzhipeng-kumoten commented 5 years ago

https://stackoverflow.com/questions/57722616/itms-90809-deprecated-api-usage-apple-will-stop-accepting-submissions-of-app

Hopefully this help out. Maybe not this plugin issue.

Faiyyaz commented 4 years ago

Even i m getting the same issue please help

Faiyyaz commented 4 years ago

When i use grep -r "UIWebView" . command i get the following response:

./Pods/YoutubeKit/README.md:- High performance (Performance is 30% better than traditional UIWebView based player)
./Pods/AppAuth/Source/AppAuth.h:    for the auth request. `UIWebView` and `WKWebView` are explicitly *not*
./Pods/AppAuth/README.md:for the auth request. `UIWebView` and `WKWebView` are explicitly *not*
./Pods/GoogleSignIn/CHANGELOG.md:- Supports sign-in via UIWebView rather than app switching to a browser,
./.symlinks/plugins/flutter_webview_plugin/CHANGELOG.md:- iOS use WKWebView instead of UIWebView
./.symlinks/plugins/flutter_webview_plugin/ios/Classes/FlutterWebviewPlugin.m:// UIWebViewDelegate
./.symlinks/plugins/flutter_webview_plugin/lib/src/base.dart:  ///     It is always enabled in UIWebView of iOS and  can not be disabled.

As you can see UIWebView you have write UIWebView in the comments in base.dart & FlutterWebviewPlugin.m.

niypoo commented 4 years ago

Same with me

AminPlusPlus commented 4 years ago

Same with me.

EHBradford commented 4 years ago

I am getting this issue today.

I can't easily remove plugins to test individual libraries because my project contains thousands of lines of code.

Can anyone offer any solutions?

My podspec.yaml file:

environment: sdk: ">=2.0.0-dev.68.0 <3.0.0"

dependencies: flutter: sdk: flutter

auto_size_text: analyzer: audioplayers: ^0.13.1 built_value: build_config: 0.3.1+4 camera: clipboard_manager: convert: cookie_jar: corsac_jwt: cupertino_icons: ^0.1.2 firebase_dynamic_links: flutter_icons: flutter_material_color_picker: flutter_native_image: datetime_picker_formfield: dio: dio_cookie_manager: dynamic_theme: esys_flutter_share: file_picker: firebase_messaging: flame: flutter_map: flutter_typeahead: flutter_launcher_icons: ^0.7.0 flutter_html: grouped_buttons: http: 0.12.0 logging: 0.11.3+2 image_crop: image_cropper: image: intl: any image_picker: json_annotation: 2.0.0 meta: multi_image_picker: native_device_orientation: ^0.0.1 path_provider: path: oauth2: photo_view: percent_indicator: package_info: qr_mobile_vision: shared_preferences: toast: uni_links: url_launcher: ^5.4.5 validate: vibration: 1.1.0 video_player: wc_flutter_share: font_awesome_flutter: ^8.5.0 image_gallery_saver:

dev_dependencies: build_runner: json_serializable: flutter_test: sdk: flutter

flutter:

uses-material-design: true

assets:

  • assets/images/add_post_minimal.png
AminPlusPlus commented 4 years ago

Hi, everyone I found the issue by following these steps:

For my case this library using UIWebView flutter_facebook_login: ^2.0.1 and replaced flutter_facebook_auth: ^0.2.3

I hope it helps!