braintree / braintree_ios

Braintree SDK for iOS
https://developer.paypal.com/braintree/docs/start/hello-client/ios/v5
MIT License
561 stars 292 forks source link

Deprecated API Usage UIWebView #514

Closed kolja-ec closed 4 years ago

kolja-ec commented 4 years ago

General information

Received the following Mail from Apple when using this:

ITMS-90809: Deprecated API Usage - Apple will stop accepting submissions of apps that use UIWebView APIs starting from April 2020 . 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.

It seems its related to dependency 'Braintree/3D-Secure'. I searched in xcode for UIWebView and when Braintree/3D-Secure is added to the project there are lots of occurrences of UIWebView but when removed it cant find UIWebView.

sestevens commented 4 years ago

Hi @kolja-ec Please update to the latest version of Braintree. The issue with UIWebView was resolved in 4.30.2.

kolja-ec commented 4 years ago

Hi @sestevens I was asking because i can see multiple occurrences of UIWebView in the latest version of braintree_ios/Braintree3DSecure/ for example in: BTWebViewController.h .

sestevens commented 4 years ago

@kolja-ec That module has been deprecated. If you're using 3DS, you should include pod 'Braintree/PaymentFlow' in your podfile. The deprecated module is pod 'Braintree/3D-Secure', so make sure you're not including that one. It will be removed in the next major version.