open-pay / openpay-react-native

openpay-react-native is a package that generates the device_session_id and tokenize credit cards with Openpay.
MIT License
8 stars 10 forks source link

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

Open ferAgredano opened 4 years ago

ferAgredano commented 4 years ago

I'm using react-native-openpay on my project and tried to upload it into apple connect, I received an email with this issue: "ITMS-90809: Deprecated API Usage - New apps that use UIWebView are no longer accepted. Instead, use WKWebView for improved security and reliability". I searched on the node_modules folder with the command "grep UIWebView -r node_modules" and I got this output: "node_modules/react-native-openpay/RNOpenpay/DeviceCollectorSDK.h:@interface DeviceCollectorSDK : NSObject Binary file node_modules/react-native-openpay/RNOpenpay/openpay.a matches" https://developer.apple.com/documentation/webkit/wkwebview/ I've tried replacing UIWebViewDelegate with WKUIDelegate on the DeviceCollectorSDK.h but seems that the openpay.a binary file still matches with UIWebView. How can I generate again the openpay.a file? I'm really new with the IOS compilation. And this is really what is not allowing me to upload to apple connect?

RN: 0.6 react-native-openpay: ^2.0.1 I'm using cocoapods but the library is linked manually because y haven't found how to add it with pods.

Thanks, and regards!

germanamz commented 4 years ago

@ferAgredano Looks like they don't have support for this repo.

I recommend to fork/copy this component and change the WebView import from react-native to https://github.com/react-native-community/react-native-webview (this is using WKWebview since v3.0.0)

As react-native also deprecated the WebView component.

Ps: Sad they don't have support :(

jonnathanc765 commented 3 years ago

Same problem, I gonna make the solution for this issue, you can make PR for normal use of community