简体   繁体   中英

How to change UIWebView to WKWebview in firebase auth folder in react native app

I'm trying to update my app and I got this email from Apple.

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

Ive located the UIWebviews and there are 24 instances in my pods/FirebaseAuth folder. How would i remove them in my app?

Step1: Open your projectname.xcworkspace in XCode.
Step2: Press cmd + shift + F
Step3: Now search "UIWebView"
Step4: Check which library using UIWebview and update that library

You have to make next options to give up using old UIWebView:

1. React Native

RNCWebView component has started using WKWebView from version 7.0.1 so you need to update your package.js to use latest one eg:

"react-native-webview": "^8.0.0",

2. Native code

If your project has native code ObjC/Swift with UIWebView you should replace with WKWebView and make appropriate code changes to use new API.

3. Libraries/Pods/Frameworks

Some your old third party libraries can use UIWebView so you should find them and update to the latest version which can use new WKWebView . How to check your libraries/frameworks or your entire app for UIWebView look at this answer - How to search for any UIWebView component usage inside a current project?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM