Skip to content
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

[webview] Deprecated API Usage New apps that use UIWebView are no longer accepted. Instead, use WKWebView for improved security and reliability #60687

Closed
azaman2204 opened this issue Jul 1, 2020 · 20 comments
Labels
r: invalid Issue is closed as not valid

Comments

@azaman2204
Copy link

azaman2204 commented Jul 1, 2020

Hi @jayeshpansheriya
You probably mistaking UIWebView with WKWebView
"we strongly encourage you to update to WKWebView, as soon as possible, for improved security and reliability. "Reference

Are you sure about the cause of rejection? Can you please more details?
Can you please provide your flutter doctor -v and flutter run --verbose?
Thank you

Originally posted by @TahaTesser in #56281 (comment)

I had the same issue today when upload to appstore as follow;
ITMS-90809: Deprecated API Usage - New apps that use UIWebView are no longer accepted. Instead, use WKWebView for improved security and reliability. Learn more (https://developer.apple.com/documentation/uikit/uiwebview).

Any resolution on this?

[✓] Flutter (Channel beta, 1.19.0-4.2.pre, on Mac OS X 10.15.5 19F101, locale en-SG)
• Flutter version 1.19.0-4.2.pre at /Users/macbook/Development/flutter
• Framework revision 9b9b543 (9 days ago), 2020-06-22 12:19:28 -0700
• Engine revision 9a28c3bcf4
• Dart version 2.9.0 (build 2.9.0-14.1.beta)

[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
• Android SDK at /Users/macbook/Library/Android/sdk
• Platform android-29, build-tools 29.0.2
• Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593)
• All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 11.5)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 11.5, Build version 11E608c
• CocoaPods version 1.9.2

[✓] Chrome - develop for the web
• Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 4.0)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin version 47.0.2
• Dart plugin version 193.7361
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593)

[✓] VS Code (version 1.46.1)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 3.12.0

[✓] Connected device (3 available)
• iPad Pro (12.9-inch) (4th generation) • D19F029D-B726-4380-B821-1D08CA1000AD • ios • com.apple.CoreSimulator.SimRuntime.iOS-13-5
(simulator)
• Web Server • web-server • web-javascript • Flutter Tools
• Chrome • chrome • web-javascript • Google Chrome 83.0.4103.116

• No issues found!

@TahaTesser TahaTesser changed the title Hi @jayeshpansheriya [webview] Deprecated API Usage Jul 1, 2020
@TahaTesser
Copy link
Member

Hi @azaman2204
Can you please provide your pubspec.yaml?
Thank you

@TahaTesser TahaTesser added in triage Presently being triaged by the triage team waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds labels Jul 1, 2020
@azaman2204
Copy link
Author

azaman2204 commented Jul 2, 2020 via email

@no-response no-response bot removed the waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds label Jul 2, 2020
@TahaTesser TahaTesser added a: release Challenges faced when attempting to productionize an app p: first party p: webview The WebView plugin platform-ios iOS applications specifically and removed in triage Presently being triaged by the triage team labels Jul 2, 2020
@TahaTesser TahaTesser changed the title [webview] Deprecated API Usage [webview] Deprecated API Usage New apps that use UIWebView are no longer accepted. Instead, use WKWebView for improved security and reliability Jul 2, 2020
@sakinaboriwala
Copy link

Heyy @TahaTesser I am facing the same issue. How can we get the culprit plugin causing this? Is there any way to do so?

@malnafei
Copy link

malnafei commented Jul 25, 2020

I'm getting the same error.

ITMS-90809: Deprecated API Usage - New apps that use UIWebView are no longer accepted. Instead, use WKWebView for improved security and reliability.

pubspec:

  flutter_svg: ^0.17.4
  simple_animations: ^2.2.1
  flutter_web_browser: "^0.11.0"
  provider: ^4.1.2
  font_awesome_flutter: ^8.8.1
  cloud_firestore: ^0.13.7
  loading_overlay: ^0.2.1
  flutter_spinkit: "^4.1.2"
  shared_preferences: ^0.5.8
  flutter_rating: ^0.0.2
  pk_skeleton: ^0.0.2
  path_provider: ^1.6.11
  flutter_qr_bar_scanner: ^1.0.2
  edge_alert: ^0.0.1
  firebase_auth: ^0.16.1
  flutter_local_notifications: ^1.4.4
  firebase_messaging: ^6.0.16
  device_info: ^0.4.2+4
  flutter_webview_plugin: ^0.3.11
  loadmore: ^1.0.4

flutter doctor -v

[✓] Flutter (Channel stable, v1.17.5, on Mac OS X 10.15.6 19G73, locale en-US)
    • Flutter version 1.17.5 at /Users/example/flutter
    • Framework revision 8af6b2f038 (4 weeks ago), 2020-06-30 12:53:55 -0700
    • Engine revision ee76268252
    • Dart version 2.8.4

 
[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
    • Android SDK at /Users/example/Library/Android/sdk
    • Platform android-R, build-tools 29.0.2
    • Java binary at: /Applications/Android
      Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build
      1.8.0_242-release-1644-b3-6222593)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 11.6)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 11.6, Build version 11E708
    • CocoaPods version 1.9.1

[✓] Android Studio (version 4.0)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin version 47.1.2
    • Dart plugin version 193.7361
    • Java version OpenJDK Runtime Environment (build
      1.8.0_242-release-1644-b3-6222593)

[✓] VS Code (version 1.47.2)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.12.2

[✓] Connected device (1 available)
    • iPhone • 00008030-023823823737322E • ios • iOS 13.5.1

• No issues found!

@malnafei
Copy link

After i remove the flutter_qr_bar_scanner: ^1.0.2 plugin the app accepted by Apple.
The issue caused by https://github.com/contactlutforrahman/flutter_qr_bar_scanner

@congfandi
Copy link

i got this issue.. now i cant upload anything to the appstore.. please help to solved this issue

@malnafei
Copy link

malnafei commented Aug 5, 2020

@congfandi please share your pubspec

@congfandi
Copy link

congfandi commented Aug 5, 2020

@Magic-coding here

  shared_preferences: ^0.5.6+3
  http: ^0.12.0+4
  flutter_image_compress: ^0.6.5+1
  provider: ^4.0.4
  cached_network_image: ^2.0.0
  flutter_html: ^0.11.1
  sqflite: ^1.3.0
  path_provider: ^1.5.1
  autocomplete_textfield: ^1.7.3
  overlay_support: ^1.0.3
  google_maps_flutter: ^0.5.26+4
  geocoder: ^0.2.1
  location: ^3.0.2
  flutter_web_view: ^0.0.6
  flutter_webview_plugin: ^0.3.11
  intl: ^0.16.1
  toast: ^0.1.5
  banner_view: ^1.1.2
  package_info: ^0.4.0+18
  open_appstore: ^1.0.2
  tutorial_coach_mark: ^0.3.0
  sentry: ^3.0.1
  device_info: ^0.4.2+4
  flutter_countdown_timer: ^1.0.0
  flutter_downloader: ^1.4.4
  barcode_widget: ^1.4.0
  whatsapp_unilink: ^1.0.0+1
  url_launcher: ^5.5.0
  firebase_messaging: ^6.0.16

@endrelovas
Copy link

The way I found it was the following. I went to ~/.pub/cache/hosted/pub.datlang.org folder (there has to similar under windows as well) where I ran a full search to find files containing "UIWebView".

For me it was flutter_full_pdf_viewer causing the issue. Checked the repo and updated the version which did not use UIWebView anymore.

@congfandi
Copy link

guys, is there any way to resolve this issue ?

@endrelovas
Copy link

guys, is there any way to resolve this issue ?

@congfandi
Just do a full text search in your .pub cache folder for "UIWebView". It will list all your dependencies that might use it. Then consider replacing, removing, rewriting, upgrading those plugins. It really comes to that.

@congfandi
Copy link

guys, is there any way to resolve this issue ?

@congfandi
Just do a full text search in your .pub cache folder for "UIWebView". It will list all your dependencies that might use it. Then consider replacing, removing, rewriting, upgrading those plugins. It really comes to that.

OK, I have been find the lib contains UIWebView and its found on web_view_plugin .. i remove that an replacing with another 1.. then appstore accept my App..

Thanks @endrelovas

@mzyadatuba
Copy link

any solution ????

@JoeMan97
Copy link

JoeMan97 commented Nov 14, 2020

We have facing this problem for almost 1 week. This is our case:

pubspec.yaml

dependencies:
flutter:
sdk: flutter
flutter_localizations:
sdk: flutter
animated_text_kit: ^2.0.1
cached_network_image: ^2.0.0
carousel_pro: ^1.0.0
chips_choice: ^1.2.0
cupertino_icons: ^0.1.2
dropdown_formfield: ^0.1.1
esys_flutter_share: ^1.0.2
email_validator: ^1.0.0
extended_image: ^0.7.1
firebase_auth: ^0.16.1
firebase_core:
firebase_database: ^3.1.6
firebase_messaging: ^6.0.16
flutter_barcode_scanner: ^1.0.1
flutter_credit_card: ^0.1.3
flutter_phoenix: ^0.1.0
flutter_share_me: ^0.9.1
flutter_staggered_grid_view: ^0.3.0
font_awesome_flutter: ^8.5.0
flutter_facebook_login: ^3.0.0
flutter_conekta: ^1.0.7+1
flutter_holo_date_picker: ^0.1.4
flutter_map: ^0.9.0
flutter_masked_text: ^0.8.0
flutter_svg: ^0.17.4
flutter_typeahead: ^1.7.0
fluttertoast: ^7.0.1+1
geolocator: ^5.2.1
google_sign_in: ^4.5.1
http: ^0.12.0+2
http_auth: ^0.3.1
jaguar_jwt: ^2.1.6
image_picker: ^0.6.7+4
material_design_icons_flutter: ^3.2.4595
mask_text_input_formatter: ^1.0.6
multi_image_picker: ^4.6.9
numberpicker: ^1.2.1
package_info: ^0.4.1
path_provider: ^1.6.11
photo_view: ^0.8.2
provider: ^4.0.5
notification_permissions: ^0.4.7
screenshot: ^0.2.0
shared_preferences: ^0.5.8
socket_io_client: ^0.9.10
string_validator: ^0.1.4
timeago: ^2.0.26
unicorndial: ^1.1.5
uuid: ^2.0.4
wakelock: ^0.1.3+4

flutter doctor

[✓] Flutter (Channel unknown, v1.17.5, on Mac OS X 10.15.7 19H2, locale es-419)
• Flutter version 1.17.5 at /Users/josecarrillo/Developer/flutter
• Framework revision 8af6b2f (5 months ago), 2020-06-30 12:53:55 -0700
• Engine revision ee76268252
• Dart version 2.8.4

[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.1)
• Android SDK at /Users/josecarrillo/Library/Android/sdk
• Platform android-30, build-tools 30.0.1
• Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593)
• All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 11.6)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 11.6, Build version 11E708
• CocoaPods version 1.9.3

[✓] Android Studio (version 4.0)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin version 48.0.2
• Dart plugin version 193.7361
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593)

[✓] VS Code (version 1.51.1)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 3.16.0

[!] Connected device
! No devices available

! Doctor found issues in 1 category.

@JoeMan97
Copy link

JoeMan97 commented Nov 19, 2020

I got my solution, the problem was with the package flutter_conekta.

And how I found the solution? Well, I went to xCode, selected the search tab on the left panel and searched UIWebView.

Hope this helps someone :)

@stuartmorgan
Copy link
Contributor

No plugins maintained by the Flutter team use UIWebView. Anyone experiencing this needs to find the third-party plugin causing this, as described above.

Closing, as there is no Flutter bug here.

@TahaTesser TahaTesser added r: invalid Issue is closed as not valid and removed a: release Challenges faced when attempting to productionize an app p: first party p: webview The WebView plugin platform-ios iOS applications specifically labels May 18, 2021
@mohadel92
Copy link

No plugins maintained by the Flutter team use UIWebView. Anyone experiencing this needs to find the third-party plugin causing this, as described above.

Closing, as there is no Flutter bug here.

how to find it please

@stuartmorgan
Copy link
Contributor

You'll need to search the source of the plugins you are using.

@mohadel92
Copy link

from my personal experience
i want to document that the issue of Deprecation UIWebView has no direct relation with official webview_flutter
this happens because third party lib. implements older version of webview_flutter in my case was twitter_auth, flutter_html and flutter_twitter_login on older version of flutter [ 1.22.6in my case]
so removal of previously mention 3 packages was solution or upgrading to flutter 2 then updating these packages

@github-actions
Copy link

This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 31, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
r: invalid Issue is closed as not valid
Projects
None yet
Development

No branches or pull requests

10 participants